A student at First Coast High was arrested after admitting he had a gun when confronted by an officer.