Firefighters stand at a road block in Wuerzburg, Germany, 18 July 2016. Reports state that a man allegedly wielding an axe injured multiple passengers on a regional train in Wuerzburg.
Photograph: EPA/Karl-Josef Hildenbrand

German authorities have identified a man shown in a video released by the Islamic State group as the teenage Afghan refugee who committed a stabbing attack on a German train, a German official told dpa Tuesday, establishing an apparent link between the terror group and the attack.

"The man in the video is the Wuerzburg assailant," a spokesman for Bavarian Interior Minister Joachim Herrmann said, referring to a video posted online by the Aamaq News Agency, an Islamic State mouthpiece.

In the video, the assailant waved a knife and claimed in Pashto to be a "holy warrior" of the group with the intention of carrying out an attack in Germany.

Late Monday, the 17-year old Afghan national, whose name has been withheld by authorities, attacked people with an axe and a knife on a regional train heading towards the Bavarian city of Wuerzburg in southern Germany.

Four of the five victims were members of the same family visiting from Hong Kong. Two of the victims remained in hospital with "acute and life-threatening injuries," prosecutor Erik Ohlenschlager said.

The attack was aborted when the train was brought to an emergency halt and the teenager fled the scene, assaulting a woman who was walking her dog nearby. Police shot and killed him shortly thereafter.

Aamaq said in a statement that the 17-year-old "carried out the operation in response to calls to target states in the coalition fighting Islamic State."

The attack renewed calls for stricter controls on asylum seekers in Germany.

"What is clear is that we must keep tighter control over what comes into our country," Herrmann told public broadcaster ARD. "We have to limit the influx and thereby be able to really deal intensively with those who have a right to asylum and make sure that they don't get out of hand like this."

More than 1.1 million refugees arrived in Germany in 2015. The attacker is one of nearly 15,000 unaccompanied minors who applied for asylum in Germany in 2015, according to the BAMF agency for refugees. Many of them suffer from post-traumatic stress disorder.

The assailant registered as a refugee in the southeastern city of Passau in June 2015 and received a residence permit three months ago, authorities said.

He had been living in a home for young refugees until he was placed with a foster family in a town near Wuerzburg two weeks ago, according to Herrmann.

"Witnesses have not described him as in any way radicalized or fanatic," Herrmann said. "He went to mosques on Muslim holidays but did not seem particularly devout."

Prosecutors said that the teenager had learned over the weekend that a friend had been killed in Afghanistan, and that his host family had noted a change in behaviour since then.

Authorities found a hand-painted Islamic State flag and Pashto-language writings in his room, including a goodbye note to his father and a text calling on Muslims to arm themselves.

Police investigator Lothar Koehler said the teen had posted a "cryptic message" on social media 24 hours before the attack in which he mentioned the "enemies of Islam."

In the Pashto writings found in his room, he expressed the hope that he would be able to "take revenge on the infidels and ... go to heaven," Koehler said, reading the translated statement aloud at a press conference.

Similar attacks in Germany have been linked to radical forms of Islam. In May, a man allegedly shouted "Allahu Akbar" before killing one person and wounding three at a train station near Munich.

Latest news

Plane crashes at airport in Melbourne

A five-passenger charter plane has crashed into a building next to Essendon Airport in Melbourne, with witnesses reporting explosions, fire and black smoke, police said Tuesday.

Air France pilots give green light to lower cost subsidiary

Members of Air France's main pilots union on Monday voted to accept the creation of a new lower cost subsidiary that the flag carrier hopes will help it compete on long-haul routes.

US Army General McMaster tapped as Trump's national security advisor

Army Lieutenant General HR McMaster will be the new White House national security advisor, US President Donald Trump told reporters Monday.

Greece's creditors want sweeping reforms before next bailout payment

Greece must make sweeping reforms to its labour market, pension system and collective bargaining agreements in order to receive its next vital bailout payment, the country's European creditors said Monday.

President wants to recall "politically appointed ambassadors", can't do it without gov't

President Kolinda Grabar-Kitarovic said that many politically appointed Croatian ambassadors were not carrying out state policies but that she could not replace them without the government to appoint career diplomats who would fight for Croatia's interests.

Izetbegovic hopes ICJ will confirm Serbia's responsibility for genocide

The Bosniak member of the tripartite presidency of Bosnia and Herzegovina, Bakir Izetbegovic, on Monday rejected criticism stirred up by the announcement that the International Court of Justice (ICJ) would be requested to review its judgement made after Bosnia sued Serbia for genocide.

British lawmakers locked in heated debate over Trump's state visit

Allowing US President Donald Trump to visit Britain would be akin to "pimping out the Queen," one British lawmaker said Monday during a heated debate in British parliament over two petitions concerning the US leader's future state visit.

Vitaly Churkin, Russia's sharp-tongued ambassador to the UN, dies

Russia's long-time ambassador to the United Nations, Vitaly Churkin, died in New York on Monday, following a career that spanned four decades and saw Russia emerge from the Soviet Union and experience many turbulent events in its relations with the West.

French police raid National Front over European Parliament payments

France's far-right National Front Monday said that investigators had searched its offices in relation to allegations that it misused European Parliament funds.

Unhappy Presidents' Day: Trump still manoeuvring after Sweden comment

Donald Trump used his first Presidents' Day in office to continue trying to talk his way out of comments implying a terrorist attack in Sweden that never happened.

Croatia supports Kosovo's territorial integrity - Grabar-Kitarovic

Croatia's President Kolinda Grabar-Kitarovic on Monday expressed the support to Kosovo's territorial integrity and Euro-Atlantic aspirations during her talks with the visiting Kosovo Foreign Minister Enver Hoxhaj.

Petrov rules out early parliamentary election

Parliament Speaker and Bridge party leader Bozo Petrov on Monday dismissed speculation about a reshuffle of the parliamentary majority, saying an early election was likelier, but that right now he did not see "such a scenario."