Police shot a 17-year-old Afghan refugee dead after his involvement in a train axe attack in Southern Germany’s Wuerzburg-Heidingsfeld Station.

According to reports, around 20 people suffered minor as well as major injuries. The assailant was armed with an axe and started attacking people following the storming of the train. Police officers came prepared on the spot after they received reports of the man hacking the passengers already inside the train near the Wuerzburg Station. The officers took action against him as soon as he attempted to charge the police.

The bloody axe rampage began on Monday evening. The motive of the attack is still unclear, though. Mirror UK reported that the boy shouted “Allahu Akbar” prior to commencing the train attack plans. “Shortly after arriving at Wuerzburg, a man attacked passengers with an axe and a knife,” a police spokesperson stated. “Three people have been seriously injured and several others lightly injured. The perpetrator was able to leave the train, police left in pursuit, and as part of this pursuit, they shot the attacker and killed him.”

The attack exhibited similarities to the Munich knife attack in May. A man was killed in the incident but the attacker, 27, has been found mentally ill and is now being treated in a psychiatric hospital. He was 27 years old, and he also shouted “Allahu Akbar” like what the German attacker did. However, later on, there was no evidence to prove that he attacked the train out of religious motives.

Bavarian Interior Minister Joachim Herrmann confirmed that the assailant was a 17-year-old refugee from Afghanistan and had been living close to Ochsenfurt. He informed ARD that the migrant might have visited Germany as an unaccompanied teen in 2015. Only the boy is suspected to have links with the attack.

The axe attack took place on a train running between Treuchlingen and Wuerzburg.