(CNN) - The United States moved to increase embassy security around the world after the attack that killed the U.S. ambassador to Libya and three staffers.
"I have directed my Administration to provide all necessary resources to support the security of our personnel in Libya, and to increase security at our diplomatic posts around the globe," U.S. President Barack Obama said in a statement Wednesday morning in response to the attack.
The United States deployed a group of Marines called a fleet antiterrorism security team to Libya to help secure U.S. facilities, two U.S. officials said Wednesday. Such units are specially trained to retake or guard diplomatic installations and other U.S. facilities in troubled regions.
About 50 Marines were headed to Tripoli and could deploy elsewhere in Libya after their arrival, U.S. officials said.
It was unclear what steps the United States was taking elsewhere in the world.
The moves come a day after the attack that killed Ambassador J. Christopher Stevens amid protests at the U.S. Consulate in Benghazi, Libya. Heavily armed protesters assaulted the consulate, Secretary of State Hillary Clinton said Wednesday.
Demonstrators also attacked the U.S. Embassy in Cairo on Tuesday. Protesters in both countries were apparently angry about an online video considered offensive to Islam.
"There's a lot of skittish people at the State Department right now," CNN foreign affairs reporter Elise Labott said.
It is unclear whether Stevens' death resulted from the broader anti-American protests or a separate, local plot against the ambassador, former State Department official James Rubin said.
"Until you are able to answer that question, it's kind of hard to assign the significance of this," said Rubin, who was State Department spokesman during the administration of President Bill Clinton.
Former U.S. House Speaker Newt Gingrich, however, said on CNN's "Starting Point" that the attack was clearly part of a coordinated assault on U.S. interests.
He said that simultaneous attacks in Libya and Egypt, on the anniversary of the 9/11 terrorist attacks in the United States, could happen only with "a fair amount of collusion and a fair amount of planning."
Mohammed Al-Megaryef, head of Libya's ruling party, told reporters Wednesday that "the transitional government has done all that it could in order to protect the embassies, the consulates and the foreign companies in Libya."
Prime Minister Abdurrahim el-Keib said the government would increase security Wednesday in response to the attacks.
Secretary of State Clinton said she had spoken to the Libyan president seeking additional protection for American interests in the country.
She said the U.S. government is also working with countries to "protect our personnel, our missions and American citizens worldwide."
"There is no higher priority than protecting our men and women, wherever they serve," Clinton said.
Diplomacy can be an inherently risky activity, said Christopher Hill, former U.S. ambassador to Iraq.
"As we speak, many of the diplomats are risking their lives to carry out our country's interests," he said.
He said diplomats in unstable regions typically travel in convoys of heavily armed guards and said it was likely that Stevens was also as well protected as he could be amid a chaotic, violent situation.
"I can assure you, I can absolutely assure you, that security was paramount on the minds of the embassy and the ambassador," Hill said.
But he said it's just not possible to surround diplomats in a bubble of impenetrable protection.
"it's never a matter of getting rid of risk. It's a matter of managing risk, and that is a very tough thing to do," he said.
CNN's Barbara Starr contributed to this report.