A barricade set by anti-government activists burns in flamesin Venezuela's third city, Valencia, on August 6, 2016, a day after a new assembly with supreme powers and loyal to President Nicolas Maduro started functioning in the country.
In the video posted online earlier, allegedly at an army base used by the National Bolivarian Armed Forces in Valencia, a man presenting himself as an army captain declared a "legitimate rebellion... to reject the murderous tyranny of Nicolas Maduro" and demanded a transitional government and "free elections." After the video surfaced, military chiefs said troops had put down the "terrorist" attack.
RONALDO SCHEMIDT/Getty Images
A barricade set by anti-government activists burns in flamesin Venezuela's third city, Valencia, on August 6, 2016, a day after a new assembly with supreme powers and loyal to President Nicolas Maduro started functioning in the country. In the video posted online earlier, allegedly at an army base used by the National Bolivarian Armed Forces in Valencia, a man presenting himself as an army captain declared a "legitimate rebellion... to reject the murderous tyranny of Nicolas Maduro" and demanded a transitional government and "free elections." After the video surfaced, military chiefs said troops had put down the "terrorist" attack.
Now playing
01:52
Venezuela quells 'paramilitary' attack at base
TOPSHOT - Venezuelan President Nicolas Maduro holds a national flag during the closing of the campaign to elect a Constituent Assembly that would rewrite the constitution, in Caracas on July 27, 2017 on the second day of a 48-hour general strike called by the opposition.
Venezuela's opposition called for a nationwide protest on Friday in outright defiance of a new government ban on demonstrations ahead of a controversial weekend election. "The regime declared we can't demonstrate... We will respond with the TAKING OF VENEZUELA tomorrow," the opposition coalition, the Democratic Unity Roundtable, said Thursday on its Twitter account.
 / AFP PHOTO / Federico PARRA        (Photo credit should read FEDERICO PARRA/AFP/Getty Images)
FEDERICO PARRA/AFP/AFP/Getty Images
TOPSHOT - Venezuelan President Nicolas Maduro holds a national flag during the closing of the campaign to elect a Constituent Assembly that would rewrite the constitution, in Caracas on July 27, 2017 on the second day of a 48-hour general strike called by the opposition. Venezuela's opposition called for a nationwide protest on Friday in outright defiance of a new government ban on demonstrations ahead of a controversial weekend election. "The regime declared we can't demonstrate... We will respond with the TAKING OF VENEZUELA tomorrow," the opposition coalition, the Democratic Unity Roundtable, said Thursday on its Twitter account. / AFP PHOTO / Federico PARRA (Photo credit should read FEDERICO PARRA/AFP/Getty Images)
Now playing
01:46
US met with Venezuela officers plotting coup
Venezuelan citizens wait in line to cross to Ecuador at the Rumichaca international bridge in Ipiales, Colombia, on August 11, 2018. - The "unusual" increase in the migratory flow of Venezuelans, which reached 4,200 people a day, prompeted Ecuador to declare state of emergency in provinces bordering Peru and Colombia. (Photo by LEONARDO CASTRO / AFP)        (Photo credit should read LEONARDO CASTRO/AFP/Getty Images)
LEONARDO CASTRO/AFP/AFP/Getty Images
Venezuelan citizens wait in line to cross to Ecuador at the Rumichaca international bridge in Ipiales, Colombia, on August 11, 2018. - The "unusual" increase in the migratory flow of Venezuelans, which reached 4,200 people a day, prompeted Ecuador to declare state of emergency in provinces bordering Peru and Colombia. (Photo by LEONARDO CASTRO / AFP) (Photo credit should read LEONARDO CASTRO/AFP/Getty Images)
Now playing
01:56
Chaos in Venezuela triggers mass exodus
detonaciones desfile militar caracas maduro ruidos brk mirador mundial osmary hernandez_00004223.jpg
vtv
detonaciones desfile militar caracas maduro ruidos brk mirador mundial osmary hernandez_00004223.jpg
Now playing
02:18
Venezuelan President evacuated from stage
WASHINGTON, DC - APRIL 30:  (CHINA OUT, SOUTH KOREA OUT) U.S. President Donald Trump speaks during a joint press conference with Nigerian President Muhammadu Buhari at the Rose Garden at the White House April 30, 2018 in Washington, DC. The two leaders also met in the Oval Office to discuss a range of bilateral issues earlier in the day.  (Photo by The Asahi Shimbun via Getty Images)
he Asahi Shimbun via Getty Images
WASHINGTON, DC - APRIL 30: (CHINA OUT, SOUTH KOREA OUT) U.S. President Donald Trump speaks during a joint press conference with Nigerian President Muhammadu Buhari at the Rose Garden at the White House April 30, 2018 in Washington, DC. The two leaders also met in the Oval Office to discuss a range of bilateral issues earlier in the day. (Photo by The Asahi Shimbun via Getty Images)
Now playing
01:59
Trump asked advisers about invading Venezuela
venezuela prison riot joshua holt newton lkl_00004530.jpg
Facebook/Josh Holt
venezuela prison riot joshua holt newton lkl_00004530.jpg
Now playing
02:03
American jailed in Venezuela fears for life
 Carolina Wong and Jorge Salas sit with their daughter, Akira, before they leave Venezuela for Peru.
Khushbu Shah/CNN
Carolina Wong and Jorge Salas sit with their daughter, Akira, before they leave Venezuela for Peru.
Now playing
01:54
Family tearfully leaves Venezuela
Now playing
01:30
Dad remembers son killed in Venezuelan unrest
Demonstrators clash with the police during a rally against Venezuelan President Nicolas Maduro, in Caracas on April 19, 2017.
Venezuela braced for rival demonstrations Wednesday for and against President Nicolas Maduro, whose push to tighten his grip on power has triggered waves of deadly unrest that have escalated the country's political and economic crisis. / AFP PHOTO / Juan BARRETO        (Photo credit should read JUAN BARRETO/AFP/Getty Images)
JUAN BARRETO/AFP/Getty Images
Demonstrators clash with the police during a rally against Venezuelan President Nicolas Maduro, in Caracas on April 19, 2017. Venezuela braced for rival demonstrations Wednesday for and against President Nicolas Maduro, whose push to tighten his grip on power has triggered waves of deadly unrest that have escalated the country's political and economic crisis. / AFP PHOTO / Juan BARRETO (Photo credit should read JUAN BARRETO/AFP/Getty Images)
Now playing
01:54
Why Venezuelans are protesting
venezuelan flag
venezuelan flag
Now playing
01:19
Venezuela to US: Military action a 'crazy act'
Now playing
01:36
Panetta on Trump: This is not reality TV
Lilian Tintori
Now playing
02:09
Venezuela: Opposition leaders seized
Voters receive instructions by a Venezuelan Bolivarian National Guard officer outside a polling station during the election for a constitutional assembly in Caracas, Venezuela, Sunday, July 30, 2017.
Ariana Cubillos/AP
Voters receive instructions by a Venezuelan Bolivarian National Guard officer outside a polling station during the election for a constitutional assembly in Caracas, Venezuela, Sunday, July 30, 2017.
Now playing
00:56
Venezuelan candidate shot dead before election
Anti-government activists set up a barricade during protests of the election for a Constituent Assembly in Caracas on July 30, 2017. Deadly violence erupted around the controversial vote, with a candidate to the all-powerful body being elected shot dead and troops firing weapons to clear protesters in Caracas and elsewhere.
RONALDO SCHEMIDT/AFP/Getty Images
Anti-government activists set up a barricade during protests of the election for a Constituent Assembly in Caracas on July 30, 2017. Deadly violence erupted around the controversial vote, with a candidate to the all-powerful body being elected shot dead and troops firing weapons to clear protesters in Caracas and elsewhere.
Now playing
01:27
Violent protests over Venezuelan election
Masked opposition demonstrators take part in clashes with riot police ensuing an anti-government protest in Caracas, on July 26, 2017.
Venezuelans blocked off deserted streets Wednesday as a 48-hour opposition-led general strike aimed at thwarting embattled President Nicolas Maduro's controversial plans to rewrite the country's constitution got underway. / AFP PHOTO / FEDERICO PARRA        (Photo credit should read FEDERICO PARRA/AFP/Getty Images)
FEDERICO PARRA/AFP/AFP/Getty Images
Masked opposition demonstrators take part in clashes with riot police ensuing an anti-government protest in Caracas, on July 26, 2017. Venezuelans blocked off deserted streets Wednesday as a 48-hour opposition-led general strike aimed at thwarting embattled President Nicolas Maduro's controversial plans to rewrite the country's constitution got underway. / AFP PHOTO / FEDERICO PARRA (Photo credit should read FEDERICO PARRA/AFP/Getty Images)
Now playing
01:49
Why Venezuela is in crisis
Venezuela caught in chaos newton dnt_00000000.jpg
Venezuela caught in chaos newton dnt_00000000.jpg
Now playing
01:46
Caught in the chaos in Venezuela

Story highlights

"Legitimate rebellion" staged in Valencia, quickly contained

Government official calls the operation a "terrorist attack of a paramilitary nature"

(CNN) —  

Venezuela remained a powder keg on Sunday as authorities said they had quelled an anti-government paramilitary attack at a military base that led to the deaths of two people, and the country’s attorney general defied her ouster by the newly elected National Constituent Assembly.

A man who identified himself as an army officer announced the revolt on social media, an action he called a “legitimate rebellion” aimed at the government of leftist President Nicolás Maduro.

“We are united now, more than ever, with the brave people of Venezuela who do not recognize the legitimacy of Nicolás Maduro’s murderous tyranny,” according to a man who said he was Capt. Juan Caguaripano.

The President, speaking on his weekly TV show, “Sundays with Maduro,” made reference to the incident, saying “a week ago, we won with votes and today we had to beat terrorism with bullets.”

“They attack with terrorism and hate. We attack with our work, our love. They destruct, we construct,” he said.

Continued hardship

Sunday’s incident came amid daily anxiety in the South American nation, where the economic hardship and bloody political turmoil that had roiled the country for months came to a head last week when the Constituent Assembly was voted into office, taking the place of the opposition-led National Assembly.

Authorities said the early-morning rebellion, which took place at a military base in Valencia, about 150 kilometers (95 miles) west of Caracas, was swiftly contained.

Defense Minister Vladimir Padrino said the attack was carried out by “delinquent civilians wearing military uniforms” in the early morning hours of Sunday, an act he labeled a “terrorist attack of a paramilitary nature.”

Maduro said there were 10 attackers. “Two were killed “by shots fired by those who are loyal to our nation. One is injured. Out of these 10 attackers … nine are civilians and only one is lieutenant who deserted his post months ago.”

Venezuelan Minister of Communications Ernesto Villegas said seven people have been detained in the “mercenary attack.”

’Operation David’

Social media videos showed a group of men in military uniforms launching a resistance movement they called “Operation David.”

The man speaking in the video who identified himself as Caguaripano was with a dozen others, people he identified as soldiers from the 41st Brigade of Fort Paramacay in the city of Valencia. “I am joined here by officers and troops from this glorious unit who represent the real Venezuelan army, that has fought to forge our liberty,” Caguaripano said in a video on social media.

The move, Caguaripano said in the video, was not a “coup.”

“It is a civic and military action meant to reestablish the constitutional order and, more importantly, to save the country from its total destruction and to keep our young people and families from being murdered,” he said.

But Padrino said Caguaripano was a “first lieutenant who had deserted his post,” and those involved in the attack had been “repelled immediately.”

Privately-owned online news channel Vivo Play broadcast video from outside the Fort Paramacay showing tanks moving inside the base and helicopters surrounding it. There were news images in Valencia of a barricade set by anti-government activists in flames.

Attorney General fired

The National Constituent Assembly held its first session Saturday. In its first order of business, the assembly unanimously fired Attorney General Luisa Ortega Diaz.

They barred her from ever seeking public office again in Venezuela, prohibited her from leaving the country and froze her assets.

Her removal from office happened after she said she would open an investigation into fraud allegations surrounding last Sunday’s election.

But Ortega, speaking Sunday at Caracas’ Universidad Católica Andrés Bello, sloughed off the exercise. “I will continue being the attorney general of this country,” she told reporters.

Ortega called the election illegal and scolded the Maduro government.

“I thought they had principles, ethics and values,” she said.

Sweeping powers

The new assembly has wide-ranging powers and is expected to rewrite the Venezuelan Constitution at Maduro’s behest.

Maduro’s loyal supporters buoyantly cast votes for new members last Sunday. Staunch opposition supporters, who see the vote as a power grab and an erosion of democracy, boycotted the vote and staged demonstrations against the development.

The firing defied the regional Organization of American States, whose human rights commission Saturday warned the Venezuelan government to guarantee Ortega’s safety and allow her to continue as attorney general.

South America’s trade bloc, Mercosur, decided to suspend Venezuela indefinitely from the group until there was a “re-establishment of democratic order.” The Organization of American States applauded the decision.

Mercosur’s decision is mostly symbolic and will not impact trade or the free movement of Venezuelans among Mercosur countries.

The US Treasury Department issued sanctions in July against Saab and 12 other Maduro loyalists.

The assembly has proposed a “restructuring” of the attorney general’s office and nominated Tarek William Saab, a Maduro ally and former ombudsman, to be the interim attorney general. He was sworn in late Saturday afternoon to a rousing applause from the Constituent Assembly.

CNN’s Leyla Santiago and Jason Hanna contributed to this report.