The Air Force says it failed to follow policies for alerting federal law enforcement about Devin P. Kelley's violent past, enabling the former service member, who killed at least 26 churchgoers Sunday in Sutherland Springs, Texas, to obtain firearms before the shooting rampage.

Kelley should have been barred from purchasing firearms and body armor because of his domestic violence conviction in 2014 while serving at Holloman Air Force Base in New Mexico. Kelley was sentenced to a year in prison and kicked out of the military with a bad conduct discharge following two counts of domestic abuse against his wife and a child, according to Air Force spokeswoman Ann Stefanek.

"Initial information indicates that Kelley's domestic violence offense was not entered into the National Criminal Information Center database," Stefanek said in a statement released Monday. Air Force Secretary Heather Wilson and Chief of Staff Gen. David Goldfein have directed an investigation of Kelley's case and "relevant policies and procedures," she said.

Firearms retailer Academy Sports also confirmed Monday that Kelley purchased two weapons from its stores after passing federal background checks this year and last. It remains unclear whether those were the same weapons used in Sunday's massacre, but his ability to purchase guns at all highlights the Air Force's failure to follow Pentagon guidelines for ensuring certain violent offenses are reported to the FBI.

While military law does not classify crimes as felonies or misdemeanors, Kelley's sentence was a functional felony conviction, said Geoffrey Corn, a former Army lawyer and professor at the South Texas College of Law in Houston. A separate law prohibits violent offenders from purchasing body armor, which Kelley was seen wearing during the rampage.

Authorities say Kelley, dressed in all black and wearing a tactical vest, entered the Sutherland Springs First Baptist Church and opened fire with a Ruger semiautomatic rifle. The AR-556 Kelley used is patterned on the ubiquitous AR-15.

Corn said it appears there is confusion within the Air Force, and other military branches, about only reporting violent crimes that result in dishonorable discharges, which are more severe punishments under military law than the bad conduct discharge Kelley received.

"Either the Department of Defense is reporting these convictions, or they're not," Corn said. "How is the federal statute going to be effectively implemented if they aren't reporting these convictions?"

Texas state officials had said previously that Kelley did not meet the requirements for obtaining a concealed handgun license, according to a report in the Houston Chronicle. Kelley also claimed he had no criminal background that would have precluded him from buying firearms, the newspaper reported.

In the initial aftermath of Sunday's tragedy, officials were searching for answers about how Kelley obtained his weapons.

"By all of the facts that we seem to know, he was not supposed to have access to a gun, so how did this happen?" Texas Gov. Greg Abbott said in an interview Monday morning on CNN.

Sky Gerrond, a former Air Force security operations officer, said that the Air Force appears to have a preference for handing down bad conduct discharges rather than dishonorable discharges because, administratively, they are less burdensome and time consuming.

Gerrond, who spent seven years in military law enforcement, said a dishonorable discharge may have been a more appropriate punishment for the severity of Kelley's crime. Had the Air Force taken such measures, Gerrond said, it is more likely the details of Kelley's conviction would have reached the FBI's database.

The Air Force does not operate prisons and instead sends troops convicted of crimes to Army or Navy jails. Kelley served his sentence at a Navy brig in San Diego. Navy regulations do not require a fingerprint card and conviction summary to be forwarded to the FBI following inmate in-processing.

Corn said inmates are briefed on the specific restrictions they face upon returning to society. Gun ownership, he said, would be at the top of the list for Kelley.

"What do we tell guys like him when they leave?" Corn said.