A student said he warned his teacher about showing caricatures of the Prophet Muhammad, considered blasphemous by Muslims, days before he was decapitated on a Paris street in what French President Emmanuel Macron called an “Islamist terrorist attack.”

Martial Lusiela, 15, told NBC News he was “shocked” by Friday afternoon’s attack in the middle-class suburb of Conflans-Sainte-Honorine, north-west of the French capital.

“I didn’t expect a decapitation — it went too far,” he said, speaking with the permission of his parents, shortly after the incident that left his 47-year-old history teacher dead.

French anti-terrorism prosecutor Jean-Francois Ricard identified the victim as Samuel P.