The gun was detected before school started, according to a letter sent to families by Principal Shannon Corrigan.