Venezuelan ruling party chief Diosdado Cabello said on Sunday that there was a “terrorist” attack at a military base controlled by troops loyal to the government and that several people had been arrested.

On Twitter, Cabello said troops acted quickly to control the situation at the Paramacay base in the central city of Valencia.

The announcement came after a small group of men dressed in military fatigues, some armed with assault rifles, released a video declaring themselves in rebellion in Carabobo state.

In the video a man identifying himself as captain Juan Caguaripano said that any unit refusing to go along with its call for rebellion would be declared a military target.

The South American country has for months been in the throes of a political crisis with protests that have left more than 100 dead, nearly 2,000 wounded and over 500 detained.

On Saturday prominent opposition leader Leopoldo Lopez was returned home to serve his sentence under house arrest, days after being hauled back to prison in the middle of the night – a move that drew international condemnation.

The activist’s wife Lilian Tintori said in a message on Twitter that she and her husband remained committed to achieving “peace and freedom for Venezuela”.

This is just a tiny example of what’s coming for everyone that dares to oppose this totalitarian form of government

Luisa Ortega

Lopez was released from prison on July 8 and placed under house arrest after serving three years of a 13-year sentence on charges of inciting violence at opposition rallies. Many human rights groups considered him a political prisoner.

But he was taken back into custody last Tuesday along with former Caracas Mayor Antonio Ledezma in what many believed was a renewed crackdown on the opposition in the wake of an election of delegates to a new, all-powerful assembly charged with overhauling the nation’s constitution.

That assembly voted unanimously on Saturday to remove Venezuela’s chief prosecutor, a long-time government loyalist who broke with President Nicolas Maduro in April. Cries of “traitor” and “justice” erupted during the vote to oust Luisa Ortega from her post.

Delegates said they were acting in response to a ruling by the Supreme Court, which banned Ortega from leaving the country and froze her bank accounts while it weighed criminal charges against her for alleged irregularities.

Ortega refused to recognise the decision and vowed to continue defending the rights of Venezuelans from Maduro’s “coup” against the constitution “with my last breath”.

“This is just a tiny example of what’s coming for everyone that dares to oppose this totalitarian form of government,” Ortega said in the statement she signed as chief prosecutor.

“If they’re doing this to the chief prosecutor, imagine the helpless state all Venezuelans live in.”

She alleged that authorities were desperate to get their hands on documents containing information on dirty dealings by high-level officials, including sensitive details about millions of dollars in bribes paid by Brazilian construction giant Odebrecht.

Assembly delegates later swore in as her replacement Ombudsman Tarek William Saab, who was recently sanctioned by the Trump administration for failing to protect protesters from abuses in his role as the nation’s top human rights official.

Maduro’s constitutional assembly was seated despite strong criticism from the United States, other countries and the Venezuelan opposition, which fear that it will be used a tool for imposing a dictatorship. Supporters say it will pacify a country rocked by violent protests.

Its installation is almost certain to intensify a political crisis that has brought the four months of protests.

Maduro also wants the assembly to strip opposition lawmakers of their constitutional immunity from prosecution, saying their constant conspiring to oust him shouldn’t be protected.

While members of Congress have said they will only be removed by force, the opposition is struggling to regain its footing in the face of the government’s strong-arm tactics and the re-emergence of old, internal divisions.