The gunman responsible for a deadly school shooting in Texas warned on social media before the attack that he was going to shoot up a school.