The former headteacher of a French school has revealed the shocking sequence of events that led to the beheading of Samuel Paty by a Chechen refugee.