A man who had been under surveillance as a potential security threat attacked a teacher days after he was questioned by French intelligence services over suspicions of Islamic radicalisation.