School resource deputy faces discipline after gun fired at school