WASHINGTON -- The United States shuttered its embassy in Libya on Saturday and evacuated its diplomats to neighboring Tunisia under U.S. military escort as fighting intensified between rival militias. Secretary of State John Kerry said "free-wheeling militia violence" prompted the move.

American personnel at the Tripoli embassy, which had already been operating with limited staffing, left the capital around dawn and traveled by road to neighboring Tunisia, with U.S. fighter jets and other aircraft providing protection, the State Department said. The withdrawal underscored the Obama administration's concern about the heightened risk to American diplomats abroad, particularly in Libya where memories of the deadly 2012 attack on the U.S. mission in the eastern city of Benghazi are still vivid.

The evacuation was accompanied by a new State Department travel warning for Libya urging Americans not to go to the country and recommending that those already there leave immediately. "The Libyan government has not been able to adequately build its military and police forces and improve security," it said. "Many military-grade weapons remain in the hands of private individuals, including anti-aircraft weapons that may be used against civilian aviation."

Speaking Saturday in Paris where he was meeting with other diplomats on the Israeli-Palestinian conflict, Kerry said the U.S. remains committed to the diplomatic process in Libya despite the suspension of embassy activities there. State Department spokeswoman Marie Harf said the evacuated employees will continue to work on Libyan issues in Tunis, elsewhere in North Africa and Washington.

"Securing our facilities and ensuring the safety of our personnel are top department priorities, and we did not make this decision lightly," Harf said. "Security has to come first. Regrettably, we had to take this step because the location of our embassy is in very close proximity to intense fighting and ongoing violence between armed Libyan factions."

The Pentagon said in statement that F-16 fighter jets and other U.S. aircraft provided security. "The mission was conducted without incident, and the entire operation lasted approximately five hours," the statement said.

The State Department said embassy operations will be suspended until a determination is made that the security situation has improved. Tripoli has been embroiled for weeks in inter-militia violence that has killed and wounded dozens on all sides. The fighting has been particularly intense at the city's airport.

"We are committed to supporting the Libyan people during this challenging time, and are currently exploring options for a permanent return to Tripoli as soon as the security situation on the ground improves," Harf said.

Rep. Howard "Buck" McKeon, R-Calif., the House Armed Services Committee chairman, expressed gratitude for the work of the U.S. forces that helped in the evacuation.

The move marks the second time in a little more than three years that Washington has closed its embassy in Libya. In February 2011, the embassy suspended operations during the uprising that eventually toppled longtime leader Moammar Gadhafi. After the formation of a transitional government in July 2011, the embassy reopened in September. Gadhafi was killed in October 2011.

The Obama administration has been particularly sensitive about security of U.S. government employees in Libya since the Sept. 11, 2012, attack on the U.S. mission in the country's second largest city of Benghazi. The attack killed Ambassador Chris Stevens and three other Americans. The administration is still fending off criticism from Republicans and others that it did not take the needed steps to enhance security in Benghazi or evacuate the mission due to rising violence in that city in the months prior to the attack.

The Benghazi mission was abandoned after that attack and never reopened. The embassy In Tripoli has been operating with reduced staff since but has remained open even as the violence intensified.

On Friday, U.S. Ambassador to Libya Deborah Jones appealed for fighting near the embassy to stop. "We have not been attacked but our neighborhood a bit 2 close to the action," she tweeted. "Diplomatic missions 2 B avoided pls." Jones had also tweeted about "heavy shelling and other exchanges" of fire in the vicinity of the embassy. Speculation about an evacuation had been rife at the State Department for more than a week.

Libya is now witnessing one of its worst spasms of violence since Gadhafi's ouster. In Tripoli, the militias are fighting mostly for control of the airport. They are on the government's payroll because authorities have depended on them to restore order.

The U.S. is the latest in a number of countries to have closed diplomatic operations in Libya. Turkey on Friday announced that it had shut its embassy and militia clashes in Benghazi have prompted the United Nations, aid groups and foreign envoys to leave.

Associated Press

The Associated Press is the backbone of the world's information system serving thousands of daily newspaper, radio, television and online customers with coverage in all media and news in all formats. It is the largest and oldest news organization in the world, serving as a source of news, photos, graphics, audio and video.