The headmistress of the school said people inside "felt in danger".