A federal judge denied bail Thursday for a former Marine reservist accused of shooting at the Pentagon and other military-related buildings in late 2010.