TEGUCIGALPA, Honduras — Soldiers ousted the democratically elected president of Honduras on Sunday and Congress named a successor, but the leftist ally of Venezuelan President Hugo Chavez denounced what he called an illegal coup and vowed to stay in power.
The first military takeover of a Central American government in 16 years drew widespread condemnation from governments in Latin America and the world, and Chavez vowed to overthrow the country's apparent new leader.
President Manuel Zelaya was awakened Sunday by gunfire and detained while still in his pajamas, hours before an unpopular constitutional referendum many saw as a power grab. An air force plane flew him into forced exile in Costa Rica as armored military vehicles with machine guns rolled through the streets of the Honduran capital and soldiers seized the national palace.
"I want to return to my country," Zelaya said in Costa Rica. "I am president of Honduras."
Congress voted to accept what it said was Zelaya's letter of resignation, with even Zelaya's former allies turning against him. Congressional leader Roberto Micheletti was sworn in to serve until Jan. 27 when Zelaya's term ends. Micheletti belongs to Zelaya's Liberal Party, but opposed the president in the referendum.
"My slogan will be the reconciliation of the grand family of Hondurans ... and a grand national dialogue," Micheletti said after Congress gave the military a long standing ovation.
Zelaya denied resigning and insisted he would serve out his term, even as the Supreme Court backed the military takeover and said it was a defense of democracy.
His ouster came hours before polls were to open on a constitutional referendum that Zelaya was pushing ahead even after the Supreme Court and the attorney general said it was illegal. The constitution bars changes to some of its clauses, such as the ban on a president serving more than one term, they said.
Some businesses in the capital, Tegucigalpa, closed earlier this week amid the rising tension, and many speculated there would be a coup. Those who opposed the referendum warned against voting, fearing violence at the polls.
Countries throughout Latin America and the world condemned Zelaya's expulsion, and Chavez said before Micheletti was sworn in that if he was appointed president, "we will overthrow him." Chavez said Venezuela "is at battle" and put his military on alert.
In Havana, Cuban Foreign Minister Bruno Rodriguez vowed to work with allies to push for Zelaya's return to power. He said Cuban Ambassador Juan Carlos Hernandez was held briefly in Tegucigalpa after he and other foreign diplomats tried unsuccessfully to prevent soldiers from taking away Honduran Foreign Minister Patricia Rodas.
Chavez said troops in Honduras temporarily detained the Venezuelan and Cuban ambassadors and beat them.
President Barack Obama said he was "deeply concerned" and U.S. Secretary of State Hillary Clinton said Zelaya's arrest should be condemned.
"I call on all political and social actors in Honduras to respect democratic norms, the rule of law and the tenets of the Inter-American Democratic Charter," Obama's statement read.
Coups were common in Central America for four decades reaching back to the 1950s, but Sunday's ouster was the first military power grab in Latin America since a brief, failed 2002 coup against Chavez. It was the first in Central America since military officials forced President Jorge Serrano of Guatemala to step down in 1993 after he tried to dissolve Congress and suspend the constitution.
"We thought that the long night of military dictatorships in Central America was over," said Costa Rican President Oscar Arias, who sat beside Zelaya at a news conference.
Zelaya told the Venezuela-based Telesur network that he was awoken by gunshots and the shouts of his security guards, who he said resisted troops for at least 20 minutes. Still in his pajamas, he jumped out of bed and ducked behind an air conditioner to avoid the bullets, he said.
He said eight to 10 soldiers in masks escorted him onto an air force plane that took him to Costa Rica.
Zelaya said he would attend a scheduled meeting of Central American presidents in Nicaragua on Monday and that Chavez, who also plans to attend, would provide transportation.
Zelaya called on Honduran soldiers to back him, urged citizens to take to the streets in peaceful protests, and asked Honduran police to protect demonstrators.
About 100 supporters congregated in front of locked gates outside the national palace, where they hurled rocks at soldiers and shouted "Traitors! Traitors!" They hung a Honduran flag.
"They kidnapped him like cowards," screamed Melissa Gaitan. Tears streamed down the face of the 21-year-old, who works at the government television station. "We have to rally the people to defend our president."
The vote did not take place on the referendum, which asked whether another vote should be held on convoking an assembly to rewrite the constitution.