UAE airspace has been closed after cities across the Middle East were targeted by Iran in retaliation for attacks led by the US and Israel.