French teacher ‘invented’ story about Islamist attack