The gunman who killed 26 churchgoers in Texas fled from a mental health clinic in 2012, according to a police report.
He was "attempting to carry out death threats" against "his military chain of command", the report states.
Officials say the assault charge should have legally barred him from owning guns. El Paso police arrested Kelley at a bus terminal in downtown El Paso in June 2012, according to a police report first reported by KPRC in Houston.
Officers wrote that Kelley had fled Peak Behavioral Health Services in Santa Teresa, New Mexico, about 100 miles (160km) away.