The US president's threat comes after Iranian ballistic missiles hit a key natural gas site in Qatar.