A hand-painted flag of the Islamic State group has been found among the belongings of the 17-year-old Afghan refugee who attacked train passengers with an axe and a knife, authorities said on Tuesday.
The flag was found in the room of the man who seriously wounded four people and injured several others on a regional train in the city of Wuerzburg, Bavaria state interior minister Joachim Herrmann told ZDF public television.
The teenager was shot dead by police as he tried to flee.
Earlier, Herrmann had said the assailant had arrived as an unaccompanied minor in Germany and had lived at first in a shelter and then more recently with a foster family in nearby Ochsenfurt.
A spokesman for the interior ministry had said it was "quite probable that this was an Islamist attack", adding that the assailant had shouted "Allahu akbar" (God is greatest).
However he stressed that the investigation was ongoing and that the teenager appeared to have acted alone.
The attack happened around 9:15 pm (1915 GMT) on Monday on the train running between Treuchlingen and Wuerzburg in Bavaria.