BERLIN (AP) — The Latest on the German train attack (all times local):
A German police investigator says that among many notes found in the train attacker's home is one that convinced them that his motivation was Islamic extremism.
Lothar Koehler said the passage read "Pray for me that I can take revenge on these infidels and pray for me that I will go to heaven."
Authorities say the 17-year-old Afghan asylum-seeker shouted "Allahu akbar" (Arabic for "God is great") as he attacked people on the regional train near the Bavarian city of Wuerzburg on Monday night, and a hand-painted IS flag was found during a search of his room. Five people were wounded, including two in life-threatening condition.
Police fatally shot the attacker as he tried to escape.
German prosecutors say an Afghan teenager brought an ax and knife with him on board a regional train, armed himself with the weapons in the train's bathroom, then attacked "fully unsuspecting" passengers.
Prosecutor Erik Ohlenschlager said the suspect hacked and slashed at the passengers "with great force on their bodies and heads."
He says in an emergency call made by a witness from the train during the attack, police were able to hear the attacker call out "Allahu akbar," the Arabic phrase for "God is great."
After fleeing the train, authorities say the suspect turned the ax on a woman he encountered, attacking her from behind and hacking at her face.
The woman's being treated in a hospital for life-threatening injuries. Police fatally shot the attacker.
German prosecutors say that the 17-year-old Afghan asylum-seeker who carried out an ax attack on a train learned over the weekend that a friend had been killed in Afghanistan.
Bamberg prosecutor Erik Ohlenschlager also said that at least two of the wounded were suffering from "acute life-threatening" wounds.
Police fatally shot the attacker as he fled the scene. The Islamic State group claimed the attack, but authorities say the asylum-seeker appears to have been self-radicalized and had no direct link to the extremists.
The teenager shouted "Allahu akbar" ("God is great") as he attacked people on the regional train near the Bavarian city of Wuerzburg on Monday night, and a hand-painted IS flag was found during a search of his room, according to state Interior Minister Joachim Herrmann.
The Islamic State group has claimed responsibility for an attack on a train in Germany that injured at least five people.
The claim was posted on the group's Aamaq news agency on Tuesday.
It came just hours after a 17-year-old Afghan asylum seeker attacked passengers with an ax and knife on a train near Wuerzburg-Heidingsfeld on Monday night, before he was shot and killed by a special police unit.
The statement says the attacker was "a member of the Islamic State" group and carried out the attack in response to the militant group's calls to attack countries that are members of the anti-IS coalition.
A senior Germany security official said earlier Tuesday that a hand-painted flag of the IS group was found in the attacker's room.
A German top official says a 17-year-old Afghan asylum seeker shouted "Allahu akbar" ("God is great") during an ax and knife attack on a train in southern Germany that injured five people.
Bavaria's interior minister Joachim Herrmann said Tuesday on public television that investigators raiding his room also found a hand-painted flag of the Islamic State group.
Herrmann told ZDF Television the attacker came to Germany two years ago as an unaccompanied minor, and applied for asylum in March. He lived in a home for teenage refugees until two weeks ago when he was placed with a foster family. He was shot and killed by police as he fled from the scene.
Herrmann said two victims — members of a Chinese tourist family — are in critical condition.