The gunman who killed more than two dozen people at a small-town Texas church briefly escaped from a mental health facility in New Mexico in 2012, police reports indicate.

The reports also noted that Devin Patrick Kelley was once caught trying to bring guns onto a military base and threatened superior officers there.

Kelley was also named as a suspect in a 2013 sexual assault in New Braunfels, about 35 miles from the scene of Sunday's church attack in Sutherland Springs.

The records that emerged on Tuesday showed that law enforcement had at least three opportunities to stop Kelley from having access to guns long before he slaughtered much of the congregation in the middle of a service.

ALSO READ: Bounce News Nigeria Wins 2017 AppsAfrica Awards

Authorities said the death toll of 26 included the unborn baby of one of the women killed. Kelley died of a self-inflicted gunshot wound after he was chased by bystanders and crashed his car.

The Air Force confirmed on Tuesday that Kelley had been treated in the facility after he was placed under pretrial confinement stemming from a court-martial on charges that he assaulted his then-wife and hit her child hard enough to fracture the boy's skull.

The Air Force acknowledged Monday that it did not enter Kelley's criminal history into the federal database as required by military rules, another way he could have been denied a weapon.

FOR MORE FRESH STORIES, DOWNLOAD BOUNCE NEWS APP HERE

VIDEO: How To Spot A Flood Damaged Car