The department also said that due to security concerns and limited staffing it was only able to offer limited emergency services to US citizens there. There was no move yet to evacuate diplomats from the embassy.
The department said the security situation in Libya "remains unpredictable and unstable," with crime levels high in many parts of the country. It added that various groups also have called for attacks against US citizens and US interests in Libya.
"US citizens currently in Libya should exercise extreme caution and depart immediately," the department said in a statement.
Since then a renegade Libyan general has launched a military offensive against Islamists and their allied militias in Libya, which has been plagued by lawlessness since the death of dictator Moammar Gadhafi in 2011.
Also Read
Also yesterday, US defence officials said the Navy warship USS Bataan had moved into the Mediterranean Sea and could be used, if needed, for any possible evacuation of American personnel from Libya.
The officials said the Bataan, an amphibious assault ship, was not near Libya and wasn't expected to be positioned off its coast. It more likely would remain in the region, and could move or respond quickly if called.