School resource officer protects students