Knifeman (illustrative)
Knifeman (illustrative) iStock

A Turkish teenager who stabbed a Jewish teacher with a machete on Monday in the southern French city of Marseille told police he was attacking in the name of the Islamic State (ISIS) group, a prosecutor said.

The attack, which left the 35-year-old teacher with an injured shoulder and hand, occurred in broad daylight in the south of the city, prosecutor Brice Robin said.

The 15-year-old ethnic Kurd rushed the victim from behind and stabbed him in the shoulder, then chased after him for a few meters (yards) until he fell, Robin said.

The victim fended off the assailant using his arms and legs, as well as a religious text which was damaged in the scuffle, the prosecutor said.

The suspect "has the profile of someone who was radicalized on the Internet," Robin told a press briefing.

"He claimed to have been acting for Daesh," Robin said, using the Arabic acronym for ISIS. The circumstances are ironic, given that the Kurds and ISIS have been fiercely fighting in Syria and Iraq, with the fighting spilling over into Turkey at times.

"You get the sense that he does not have a full grasp of the fundamentals of Islam," claimed Robin.

The boy even admitted to investigators that he planned to arm himself and kill police as soon as he is released.

The prosecutor said the teenager's family was unaware of his radicalization and that he was a "good student."

"It appears there was a form of premeditation" with the intent of killing the victim because of his religion, Robin said, addressing the obvious anti-Semitism in the attack.

The teenager, who will turn 16 next week, faces charges of "attempted murder on grounds of religion" and "defense of terrorism."

Prime Minister Manuel Valls reacted with a tweet saying: "The anti-Semitic aggression against a teacher in Marseille is revolting."

The teacher was on his way to work at the Franco-Hebraic Institute when he was attacked.

The incident came nearly two months after another assault, north of Marseille, in which three people shouting anti-Semitic obscenities and support for the Islamic State group stabbed a Jewish teacher, injuring him in the arms, legs and stomach.

AFP contributed to this report.