Great question.
CNN is quoting a retired military prosecutor that, because of the nature of the domestic violence offenses committed by the the shooter against his wife and child, the military prosecutors should have informed the FBI of the nature of the crime. The FBI would have then reported this to the ATF, and the ATF would have put him on the database of people not permitted to buy firearms.
Obviously, that chain broke down in this instance.