The 18-year-old sprayed more than two dozen rounds from a semiautomatic rife a mile from the US Capitol.