Teacher Samuel Paty had shown his pupils caricatures of the Prophet Mohammad in a class on freedom of expression, angering some Muslim parents.