It also wasn’t clear if the student would face disciplinary consequences, sources said.
Authorities are currently searching for a suspect in the Queens attack.
Police ask public to please stay out of the area.
According to authorities, Rivera had been apprehended by the NYPD on four occasions prior to the shooting.
The condition of both the officer and the suspect is currently unknown.
Authorities have not yet furnished a description of a suspect, and no arrests have been made.