Deputies said Stephens County High School’s weapons detection system detected a pistol inside the student’s backpack.