The US government has urged all Americans to leave Lebanon immediately, following a similar warning for those in Iraq.