Personnel at the US Al Udeid base in Qatar were ordered to leave by the end of the day as Iran warns of action against Americans in the Middle East.