STOCKTON, Calif. (KTXL) — Stockton Police Department said a resource officer at Lincoln High School had to take a gun from a student Monday afternoon.

Stockton police said gun was loaded and was taken from the student during a fight.

“A potential tragedy was avoided,” the Stockton Police Department said.