CARACAS, Venezuela — Venezuela’s government announced Wednesday that it will go ahead with its threatened withdrawal from the Organization of American States, the regional body whose leader has been one of the fiercest critics of embattled socialist President Nicolas Maduro.

The move came on the same day as fierce confrontations in the capital between security forces and anti-government protesters who staged yet another march amid political unrest that has been blamed for 29 deaths in recent weeks. Clashes were also reported in other Venezuelan cities.

Foreign Minister Delcy Rodriguez called for the OAS withdrawal after a brief but contentious meeting at the group’s Washington headquarters in which its permanent council voted in favor of holding a special session to evaluate Venezuela’s crisis, adding to mounting international pressure for Maduro to schedule delayed elections and free detained political activists.

Rodriguez said the OAS’s action was taken to “intervene and take custody of our country, something that fortunately will never happen.”

Tension has been steadily rising between Venezuela and a group of OAS members that includes the United States since OAS Secretary General Luis Almagro issued a 75-page report in March accusing Maduro’s government of systematically violating human rights and standards of democracy. Almagro unsuccessfully urged OAS members to suspend Venezuela unless general elections were held soon.

As Venezuela’s unrest escalated in recent weeks, Almagro has been outspoken in denouncing the government’s response to opposition protests demanding Maduro hold new elections.

“This is an authoritarianism that hides behind the armed forces that, far from acting as the forces of order, act as the forces of repression and terror,” he said after the first reported death.

Late Tuesday, Rodriguez had warned that Venezuela would quit the OAS if the body proceeded with scheduling a special session on the crisis here, calling it an infringement on Venezuela’s sovereignty. She said the pressure being brought by the U.S. on some members like Haiti to punish Venezuela had been considerable.

Withdrawing from the OAS is a two-year process, but Rodriguez said Venezuela would immediately stop participating. Venezuela is estimated to owe the OAS about $10.5 million in unpaid annual dues. No country has ever withdrawn from the group since its founding in 1948.

The decision drew quick rebuke from opposition leaders. Former congresswoman Maria Corina Macahdo said Maduro’s exit from the OAS “formalized Venezuela’s outlaw status.”

Earlier in the day, thousands of protesters marched on Caracas’ main highway seeking to deliver a message to the national ombudsman, whose job is to stand up for citizens’ rights but who the opposition has tagged the “defender of the dictator.” They were met with plumes of tear gas that sent demonstrators running.

“The repression is very strong,” Luis Florido, an opposition lawmaker, said as clouds of the white gas swirled around him.

Opposition leaders said one protester, Juan Pablo Pernalete Llover, 20, died after being struck by a canister of tear gas. He was a student in political accounting at Metropolitan University, which issued a statement saying the institution was mourning the “early and unjust departure of this talented young Venezuelan, who gave his life in exchange for the highest values of democracy.”

Ramon Muchacho, a Caracas-area mayor, said at least 22 others were injured in Wednesday’s protests, including 14 with traumatic wounds. Elsewhere, children were evacuated from a school after being exposed to tear gas. In the evening, government officials reported two national guardsmen were wounded by gunshots in the same part of Caracas where Pernalete Llover was killed earlier.

In all, 29 people have been killed, more than 400 injured and nearly 1,300 detained in the monthlong unrest roiling the nation.

Hundreds of thousands have taken to the streets demanding Maduro hold elections and denouncing his government as being responsible for triple-digit inflation, food shortages and a rise crime. The protests have frequently ended in violent confrontations with security forces, which have used tear gas and rubber bullets to disperse crowds, and there also have been clashes with pro-government groups.

Opposition leaders have blamed armed pro-government militias known as “colectivos” for a number of the deaths, while government officials have accused the opposition of working with criminal gangs to foment unrest.

The swell of protests is the most violent seen in Venezuela since two months of anti-government demonstrations in 2014 that resulted in dozens of deaths. Maduro has called for renewed dialogue, but opposition leaders have discarded that as an option after earlier talks collapsed in December.

The tide of unrest shows no signs of diminishing soon, with opposition lawmakers vowing to march Thursday to the site where Pernalete Llover was killed. Leaders from both sides of the political divide are calling for mass gatherings on May Day.