At least three people, including the gunman, have been killed after a shooting at a bar in Texas, with the FBI investigating a potential link to the joint US-Israeli strikes on Iran.