Police say middle school student assaulted teacher and police officer