US Air Force says the Texas church attacker was discharged from the military after serving a year in jail for assaulting his wife and child.