Man pleads guilty to firing pellet gun at Navy SEALS during training