Two women were stabbed to death and their assailant shot dead by soldiers in the southern French port city of Marseille on Sunday in what police sources described as a "likely terrorist act."
Three police sources said the suspect had shouted "Allahu Akbar" (God is greatest) as he carried out his attack at Marseille's main railway station.
The two victims - one aged 17 and the other 20 - suffered gory injuries, two police sources said, saying one had her throat slit while the other was stabbed in the stomach.
"If the military had not been there, we would have had a lot more deaths," Samia Ghali, lawmaker for the Marseille region, told France Bleu Province radio.
Some 200 police officers had cordoned off the area and all roads were closed to traffic, with security forces saying the operation was still ongoing.
The Paris prosecutor opened a counter-terrorism probe.
France has been in a state of emergency following a spate of attacks by Islamist militants over the last two years, including attacks in Paris in November 2015 which killed 130 people. Other countries, including Britain, Germany and Belgium, have also suffered attacks using knives, guns, explosives and vehicles.
A witness told Reuters she saw a man take out a knife from his sleeve and then stab a young girl and then a second woman, shouting what could have been "Allahu Akbar."
She added that she saw soldiers from France's Sentinelle force who were patrolling in the area arrive on the public square at the Gare Saint-Charles station.
Two police sources said the attacker had been carrying a butcher's knife, was around 30 years old and of North African appearance. One of the sources said no identification papers were found on him.
Interior Minister Gerard Collomb said he was heading to the site of the attack.
"We have generally avoided these sorts of attacks in Marseille," regional president Renaud Muselier, who was speaking from the site of the killings, told BFM TV.
"I think the security services responded extremely quickly. It's difficult to do more because when you see the distance between the two bodies and the attacker it's only 10 meters, so they intervened quickly."
The SNCF railway operator urged people to avoid all travel to the transport hub. Some 200 trains have been diverted or are waiting at regional stations.
Security forces have increasingly been targeted by militants who have carried out several knife attacks on them, most notably in June 2016, when a Frenchman who pledged allegiance to Islamic State stabbed a police commander to death outside his home and killed his partner.
French lawmakers are due to vote on a much-criticized anti-terrorism law on Tuesday, which would enshrine some state-of-emergency powers into law and could reduce the number of military personnel on the ground.
"The presence of Sentinelle soldiers, their speed and efficiency ensured that the death count was not bigger," police union official Stephane Battaglia told Reuters.
"Sentinelle is an essential addition to the security forces during the state of emergency and the fight against terrorism," he said.
© 2017 Thomson Reuters. All rights reserved.
Get Spirit-filled content delivered right to your inbox! Click here to subscribe to our newsletter.
Join us on our podcast each weekday for an interesting story, well told, from Charisma News. Listen at charismapodcastnetwork.com.
Great Resources to help you excel in 2019! #1 John Eckhardt's "Prayers That..." 6-Book Bundle. Prayer helps you overcome anything life throws at you. Get a FREE Bonus with this bundle. #2 Learn to walk in the fullness of your purpose and destiny by living each day with Holy Spirit. Buy a set of Life in the Spirit, get a second set FREE.