The police acted after pupils reported that a classmate planned to ‘do something bad at school’ that day.