The United States has ordered nonessential diplomats and family members to leave Lebanon as tensions over Iran rise with the threat of a potentially imminent military strike.