A teacher killed in a suburb of Paris in an Islamist terror attack has been named as Samuel Paty.
The 47-year-old was "assassinated", French President Emmanuel Macron has said.
The history teacher, who is said to have discussed images of the Prophet Muhammad with his pupils, was beheaded, it has been reported.
The suspected attacker was shot dead about 600 metres from the scene, according to the AP news agency.
It happened on a street in Conflans Sainte-Honorine, northwest of the French capital, at about 5.00pm local time.
Visiting the scene, Emmanuel Macron called it a "cowardly attack", saying that the man was a "victim of an Islamist terrorist attack" and was killed because he "taught the freedom of expression, of believing and not believing".
The president said France would "protect and defend" its teachers.
Déclaration après l’attaque terroriste de Conflans-Sainte-Honorine. https://t.co/kRtDv7Y8pv
— Emmanuel Macron (@EmmanuelMacron) October 16, 2020
According to Le Parisien newspaper, the attacker was an 18-year-old man of Chechen origin, who was carrying a knife.
He is believed to have been shot after he refused to put down his gun.
A video of his last moments is thought to feature the sounds of the gun being fired, followed by a volley of shots as he was killed.
A gun was found at his side. Reports say it was an airsoft gun that fired plastic pellets.
Nine suspects arrested
The country's anti-terror prosecutor earlier called the incident a stabbing, but both the Reuters and AP news agencies said police sources told them the victim was decapitated.
Witnesses heard the attacker shout "Allahu Akbar", or God is great, Reuters said.
France's anti-terrorism prosecutors have said nine suspects have also been arrested - including the grandparents, parents and 17-year-old brother of the attacker.
Mr Paty reportedly showed images of the Prophet Muhammad in class during a discussion about freedom of expression on October 5th.
A complaint was made and the teacher was later spoken to by police.
It is understood that among those who complained was a parent who posted a video online about the incident. That parent is among the nine arrested.
The suspect did not have a child at the school, AP said.
Cartoons of Prophet Muhammad
A Twitter thread posted last Friday alleged pupils had been shown cartoons of the prophet.
However, another parent of one of the teacher's pupils said Mr Paty asked Muslim students to raise their hands and to leave the classroom before they were taught about the image.
She said: "My son understood right away - the evening he came home, he understood right away that it was not to discriminate.
"He told me, no it was not to offend us, it was images that he didn't want us to see. My son understood that at no moment he (teacher) had lacked respect."
France's Education Minister Jean-Michel Blanquer tweeted that the country had been attacked through the "despicable assassination of one of its servants".
He added that "unity and firmness are the only answers to the monstrosity of Islamist terrorism".
Samuel Paty incarnait la République dans ce qu’elle a de plus noble: son école.
Il a été lâchement assassiné par les ennemis de la liberté.
Nous serons unis, fermes et résolus: pic.twitter.com/gKtDoX4LpV
— Jean-Michel Blanquer (@jmblanquer) October 17, 2020
It is the second terrorism-related incident since the opening of an ongoing trial on the newsroom massacre in January 2015 at the satirical newspaper Charlie Hebdo after the publication of caricatures of the prophet of Islam.
As the trial opened, the paper republished caricatures of the prophet to underscore the right of freedom of expression.
Exactly three weeks ago, a young man from Pakistan was arrested after stabbing, outside the newspaper's former offices, two people who suffered non life-threatening injuries.
The 18-year-old told police he was upset about the publication of the caricatures.