A knife-wielding man injured two people in a southern German town yesterday evening

before being killed by police, who are investigating a possible "Islamist or terrorist context". 

The 30-year-old assaulted several passers-by near Ansbach station, a Bavarian town not far from Nuremberg, local police said in a statement.

Two people were injured, but they are not life threatening

.

During the intervention of the police, the attacker "


attacked the police" who opened fire and mortally wounded him.

According to witnesses, "the man shouted 'Allah akbar' several times during the attacks".