Cocoa High's metal detectors, installed this school year, caught a handgun in the possession of a student Monday morning.