A man armed with a hammer shouted “this is for Syria” before attacking police officers on Tuesday outside France's Notre Dame cathedral in Paris, the interior minister said.
The assailant wounded one officer before he was shot and wounded by other officers. The Paris prosecutor's office swiftly began a counter-terrorism investigation.
Interior Minister Gerard Collomb said the attacker was carrying the identification card of an Algerian student. He said preliminary information indicated the attacker had acted alone.
Dozens of armed police sealed off the area, and the cathedral in central Paris that is visited by millions of tourists every year, was locked down while the security forces secured the area.
It is the first attack since President Emmanuel Macron won last month's election and comes days before a parliamentary poll in which opinion surveys show Macron on course to win a landslide majority. His rivals portrayed him as weak on security during the presidential campaign.
Situation under control, one policeman injured, the assailant was neutralised and taken to hospital.Paris police on Twitter
France is under a state of emergency after a wave of militant attacks since early 2015 that have killed more than 230 people across the country. Soldiers patrol its streets alongside police to guard tourist sites, government buildings and events.
Hundreds of tourists were inside the cathedral when the attacker struck.
Karine Dalle, a spokeswoman for the Paris diocese, told BFM TV 900 people were inside the cathedral as police secured the area.
Both France and Britain have suffered a spate of militant attacks in recent months.
In London, militants on Saturday drove a van at high speed into pedestrians on London Bridge before stabbing night revellers on the street and in nearby bars, killing at seven people and wounding dozens. That followed a suicide bombing in Manchester that killed 22 people.
In France, days before the first round of the presidential election in April, a policeman was shot dead and two others wounded. Islamic state claimed the attack as well as those in London and Manchester.
In September, three women were arrested after police found a car laden with gas cylinders abandoned near Notre Dame. The interior ministry at the time said it was likely an attack had been imminent.
(The article has been edited for length)
(At The Quint, we question everything. Play an active role in shaping our journalism by becoming a member today.)