A man killed one person and injured three others in a knife attack at a German railway station today that prosecutors said had "an apparent Islamist motive."

 

Police said the man had slashed four people around 5am at the station in the town of Grafing east of Munich.

 

A spokesman for the prosecutor's office later said one man had died from wounds suffered in the attack.

 

He said the 27-year-old "assailant made remarks at the scene of the crime that indicate a political motive -- apparently an Islamist motive," said the spokesman.

 

"We are still determining what the exact remarks were."

 

Local media reported that witnesses had said the young man had yelled "Allahu akbar" ("God is greatest") during the attack.

 

The police spokesman said "a political background cannot be ruled out," adding that the man arrested was "not very cooperative".

 

Last August, two German-speaking jihadists claiming to belong to the Islamic State jihadist group threatened Germany with attacks in an online execution video, urging their "brothers and sisters" in Germany and Austria to commit attacks against "unbelievers" at home.