Police shot a man dressed as a ninja after he attempted to attack two officers with a sword in the western French city of Cherbourg on Thursday, the city's press office reported to CNN.
The incident occurred when two female police officers approached the man to question him about a car theft.
"He was neutralized by gunshots," the Cherbourg press office told CNN, however they could not say what condition the man was in.
French Interior Minister Gérard Darmanin expressed his support for the police force in a tweet.
"While intervening in a car theft in Cherbourg, two policemen were injured," Darmanin said, adding: "(My) support for the national police."
The Mayor of Cherbourg, Arrivé Benoît, also expressed his gratitude for the work of the police, saying: "All my support for the forces of order."
The two police officers involved are in good condition, authorities said.
Last month, a police officer in the French city of Cannes survived a knife attack after an assailant approached four officers outside the police station preparing for their guards.
The attacker approached the officers asking for information before opening the door of the vehicle they were in and stabbed one of the officers in the chest with a knife, the minister said.
The attacker then attempted to stab a second agent before being neutralized.