german train stabbing _00004619.jpg
german train stabbing _00004619.jpg
Now playing
00:49
Police: Man with ax attacks several on train
Brooke Baldwin last show goodbye CNN newsroom vpx_00000217.png
CNN
Brooke Baldwin last show goodbye CNN newsroom vpx_00000217.png
Now playing
03:56
'Get a little uncomfortable': See Brooke Baldwin's last words on air
CNN
Now playing
02:56
Watch Anderson Cooper belly laugh with Cheri Oteri
Now playing
01:24
How Kyra Sedgwick got the cops called on Tom Cruise
Now playing
05:18
Anderson Cooper explains how he overcomes being shy
US Navy
Now playing
01:28
Pentagon confirms UFO video is real, taken by Navy pilot
Now playing
02:35
WWII veteran: End of the war was 'the biggest thrill of my life'
Fancy Feast/Purina
Now playing
01:06
Cat food company makes a cookbook ... for humans
Google Earth's new timelapse feature
Google
Google Earth's new timelapse feature
Now playing
01:09
Google Earth's new Timelapse feature shows 40 years of climate change in just seconds
Twitter | @brady9dream
Now playing
02:10
Pet owners pitch their pups to be dog brew's 'Chief Tasting Officer'
FOX/"The Masked Singer"
Now playing
01:23
'The Masked Singer' reveals identity of The Orca
LONDON, ENGLAND - DECEMBER 07:  A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs.  (Photo by Dan Kitwood/Getty Images)
Dan Kitwood/Getty Images
LONDON, ENGLAND - DECEMBER 07: A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs. (Photo by Dan Kitwood/Getty Images)
Now playing
03:07
Bitcoin has an energy problem
The new all-electric Mercedes-EQS
Mercedes-Benz AG
The new all-electric Mercedes-EQS
Now playing
01:05
See the new all-electric EQS luxury sedan from Mercedes
Now playing
01:32
Scientists turned spiderwebs into music and it sounds like a nightmare
Jeopardy Productions, Inc.
Now playing
01:02
Aaron Rodgers' Green Bay Packers question stumps 'Jeopardy!' contestants
Now playing
05:18
Coinbase CFO: We're an on-ramp to the crypto economy

Story highlights

NEW: ISIS flag found in assailant's apartment

Attacker was a 17-year-old Afghan man living in Germany, official says

Police shot and killed attacker; four passengers are in serious condition

(CNN) —  

An ax-wielding man who attacked several people on a train in southern Germany late Monday evening has been shot dead by police, regional police spokesman Lt. Fabian Hench said.

The assailant, armed with a knife and an ax, was identified as a 17-year-old Afghan man living in Ochsenfurt, Bavaria, Bavarian Interior Minister Joachim Herrmann said.

After the initial incident, the train’s emergency brakes were deployed and the attacker fled into a nearby town, Herrmann said at a news conference Tuesday.

Police chased the attacker and then met him very close to the river where they confronted him, Herrmann said.

The teen was aggressive and tried to attack cops with his ax before they opened fire and killed him.

Herrmann said that a hand-drawn flag resembling the one used by ISIS was found in the attacker’s room, and said that he shouted “Allahu Akbar” during the attack, according to initial distress calls.

He acted by himself, Herrmann said.

Though a pro-ISIS media group said the attacker was a “ISIS fighter,” authorities cast doubt on that claim and it’s believed to be unlikely that he was working under the direct supervision of the terror group.

The 17-year-old was taken in two weeks ago by a foster family, Herrmann said.

“This is a big mosaic puzzle right now and we will do everything to pull information together in order to assess his motivation,” he said.

Motive unclear

The teen came to Germany without his parents, according to Alexander Gross, a police officer in Bavaria.

KARL-JOSEF HILDENBRAND/DPA/AFP/Getty Images

The attack took place as the train was traveling between Treuchtlingen and Wurzburg. The train made an emergency stop short of the station at Wurzburg-Heidingsfeld and the assailant jumped out of the train, Hench said.

His motive is not yet known, Hench said.

KARL-JOSEF HILDENBRAND/AFP/Getty Images

Germany absorbed more than one million refugees last year. Some have been concerned over the presence of terror groups in the country – both the potential for attackers to slip in with migrants and the concern that they may be able to radicalize disaffected youths.

Three Syrian men were arrested last month on suspicions that they were planning to carry out a mass casualty attack in Dusseldorf.

Many ‘in shock’

Four passengers who were attacked are in serious condition, with the total number of wounded unclear, according to the police spokesman.

Some 14 to 25 people were classified as “in shock” and treated at the scene, according to Gross.

At least four of those injured on the train were from Hong Kong, Hong Kong’s chief executive, CY Leung, said in a statement.

Herrmann said that those four are the most seriously injured. They were from a family of five relatives traveling together.

One is currently battling life-threatening injuries, he said.

Approximately 20 to 30 people were on the train, according to Gross.

A Deutsche Bahn spokesperson confirmed that train service between the two stations has resumed.

CNN’s Claudia Otto in Berlin and Vivian Kam in Hong Kong contributed to this report.