A French teacher who claimed he was attacked in his classroom by an Islamic State of Iraq and the Levant (ISIL) supporter admitted to prosecutors on Monday that he invented the story.

Earlier on Monday, sources in the police and prosecutor's office told the media the teacher had been attacked by a Balaclava-wearing man wielding a box-cutter and scissors.

"This is Daesh. This is a warning," the man was said to have shouted, according to the local prosecutor. Daesh is another name for ISIL.

The claim by the 45-year-old nursery school teacher set off a manhunt in Aubervilliers, northeast of Paris.

Both the Paris prosecutor's office and the local prosecutor said the teacher - who was hospitalised with light wounds to his side and throat - was being questioned on why he lied about the attack. It was unclear how the man sustained his injuries.

"He is being interviewed with a view to establishing the reasons for this invented story," an official told Reuters news agency.

ISIL claimed responsibility for the November 13 attacks in Paris that killed 130 people and wounded hundreds of others. 

Source: Agencies