The gunman who opened fire in the Texas church was able to pass a background check because the Air Force “mishandled” the process for reporting his domestic violence conviction, according to a report.

On November 6 Breitbart News reported that the gunman, Devin Kelley, passed a background check in 2016 to acquire his rifle. CNN quoted a law enforcement official who observed that Kelley “didn’t have a disqualifying criminal history when he filled out the background check paperwork at the store” in San Antonio.

Questions immediately arose–how did Kelley pass a background check, considering the fact that he had a domestic violence charge?

According to NPR, Kelley was arrested in 2012 and “was court-martialed for assaulting his then-wife and stepson.” His conviction in that case “disqualified him from legally possessing a firearm.” He entered a plea deal for a lesser sentence, but one which was still enough to prohibit him from firearm possession under federal law. Nevertheless, his arrest and conviction were not reported to the National Instant Criminal Background Check System (NICS), thus he was able to buy firearms.