A teacher found the gun during class, authorities said. The gun was confiscated and the student was taken into custody and questioned by the Clay County Sheriff's Office.