The State Department has ordered non-essential staff to leave the embassy in Beirut after a security review.