The gunman who slaughtered 26 people at a Texas church was able to buy weapons because the US Air Force failed to report his domestic violence conviction to the federal database that is used to conduct background checks on would-be gun purchasers, authorities said.