A teacher was killed in a knife attack in a school in the northern France city of Arras on Friday and the investigation was handed to the anti-terrorism prosecutor's office.
The regional Pas-de-Calais authority said the suspected assailant, who also wounded a second teacher and a school security guard in the attack, was arrested.
The suspect was a Russian-born Chechen and former student of the Lycee Gambetta high school where the attack happened, a police source said. He was on a watchlist of people known as a potential security risk, the police source added.
According to BFM TV report, the 20-year-old attacker killed a French language teacher and injured a sports teacher.
Pupils were confined to their classrooms, it added.
President Emmanuel Macron was heading to Arras, his office said. In a televised address to the nation on Thursday, Macron urged the French to remain united and refrain from bringing the Israel-Hamas conflict home.
Nothing so far pointed to a link with events in Israel and the Gaza Strip, a second police source told Reuters.
France's anti-terrorism prosecution office said it was opening an investigation into the attack. The suspected assailant's brother was also arrested.
La Voix du Nord newspaper said that pupils in all schools in Arras - a town in the desindustrialised, ethnically diverse northern corner of France - were being held in their classrooms for their own safety.


Saudi Coalition confirms Riyadh office tower hit by Houthi drone, no injuries
Israeli military kills chief of Hamas' armed wing in Gaza strike
Car bomb was used in Pakistan gold mine attack, regional minister says
Zelenskyy arrives in Britain for talks with PM, meeting of Crimea Platform
WHO's Tedros says 2 workers killed carrying Congo relief supplies
Surfer killed in shark attack in Australia's New South Wales
Pope Leo condemns attacks on Ukrainian civilians, urges Gaza flood relief
Meta says Australia social media ban hit 1.5 million teen accounts in first year
