An opposition demonstrator walks by a flaming bus during clashes with soldiers loyal to Venezuelan President Nicolas Maduro in Caracas.

Demonstrators clashed with police on the streets of the Venezuelan capital Tuesday, spurred by opposition leader Juan Guaido's call on the military to rise up against President Nicolas Maduro -- who said he had defeated an attempted coup.

An apparently carefully planned attempt by Guaido to demonstrate growing military support disintegrated into rioting as palls of black smoke rose over eastern Caracas.

Tuesday evening, Maduro declared victory over the uprising -- congratulating the armed forces for having "defeated this small group that intended to spread violence through putschist skirmishes."

"This will not go unpunished," Maduro said in an address broadcast on television and the radio.

An opposition demonstrator passes by a government bus set on fire during clashes with soldiers loyal to Maduro after troops joined opposition leader Juan Guaido in his campaign to oust Maduro's government.

"(Prosecutors) will launch criminal prosecutions for the serious crimes that have been committed against the constitution, the rule of law and the right to peace."

Guaido had been immediately backed the United States, where President Donald Trump said in a tweet Washington was standing behind the Venezuelan people and their "freedom."

He rallied his supporters with an early morning video message that showed him -- for the first time -- with armed troops he said had heeded months of urging to join his campaign to oust Maduro.

The 35-year-old National Assembly leader was filmed outside the La Carlota air base, where he asked the armed forces inside to join him.

The video had the extra shock value of featuring key opposition figure Leopoldo Lopez at his side, saying soldiers had released him from years of house arrest.

Guaido claimed the move was the "beginning of the end" of Maduro's regime, and there was "no turning back."

He later called for a fresh round of protests on Wednesday, in another video message.

Nerves of steel

Members of the Bolivarian National Guard who joined Guaido fire into the air to repel forces loyal to Maduro, near La Carlota military base in Caracas.

Thousands of opposition supporters flocked onto a highway near the air base, many waving Venezuelan flags, but they were met with gunfire and tear-gas fired by soldiers at the compound's perimeter.

Lopez later entered the Chilean embassy with his wife and one of his children to claim asylum, before moving to the Spanish embassy, Chile's Foreign Minister Roberto Ampuero announced in Santiago.

Soldiers backing Guaido wore blue armbands to demonstrate their allegiance to the opposition leader -- recognized as interim president by more than 50 countries -- but there appeared to be few of them.

Brazil said later a number of Venezuelan troops had sought asylum at its Caracas embassy. Brazilian media put that number at 25.

But Maduro had called on his forces to show "nerves of steel" and troops in riot gear, backed by armored vehicles and water tankers, lined up against the demonstrators.

Several vehicles plowed into the crowd, injuring some of the protesters. Rioters later blocked the highway with a bus and set it on fire.

Guaido addresses supporters after members of the Bolivarian National Guard joined his campaign to oust Maduro.

A plume of black smoke rose from an area near a helicopter hangar on the base, where demonstrators who briefly managed to enter were pushed back.

"Today is the day Maduro resigns. Today is the day all the country's drug dealers resign. Today we have a Venezuela. Today we have a nation," said one protester amid the confusion.

As United Nations Secretary-General Antonio Guterres appealed to all sides to avoid violence, Venezuela's army chief and defense minister, General Vladimir Padrino issued a stark warning of possible "bloodshed" -- adding that he would hold the opposition responsible.

He later said an army colonel had received a bullet wound to the neck during the clashes in Caracas.

Health officials said 69 people were injured, including two from bullet wounds.

A member of the Bolivarian National Guard supporting Guaido throws a tear gas canister during a confrontation with guards loyal to Maduro's government.

The US, meanwhile, called on the military to protect the people and support "legitimate institutions" including the opposition-controlled National Assembly.

US Secretary of State Mike Pompeo told CNN he believed Maduro was ready to flee the country to ally Cuba before he was dissuaded by Russia -- a claimed Maduro later refuted.

Moscow, Maduro's main backer and creditor alongside China, accused Guaido of "fueling conflict" in the oil-rich country.

Maduro's leftist Latin American allies Bolivia and Cuba also condemned Guaido.

Trump threatened a "full and complete embargo" and tougher sanctions against Cuba if it doesn't end military support for Venezuela.

A supporter (L) and an opponent (R) of Maduro argue as they demonstrate outside the Venezuelan embassy in Mexico City.

Pro- and anti-Maduro demonstrations were held outside the Venezuelan embassies in several Latin American and European capitals.

Internet observatory NetBlocks reported that "multiple internet services" were restricted in Venezuela following Guaido's appeal.

Definitive phase

Map of Venezuela locating the Carlota military base and main buildings in Caracas, capital of Venezuela.

The government suspended broadcasts from BBC Mundo, CNN International and a Caracas radio station, local media and the National Union of Press Workers said.

The Lima Group of mostly Latin American countries announced an emergency meeting in Lima on Friday to discuss the crisis.

In his video, Guaido said the "definitive phase" had begun in his attempt to oust Maduro -- who has presided over a catastrophic economic implosion since taking over from his late mentor Hugo Chavez in 2013.

"Brave soldiers, brave patriots, brave men supporting the constitution have answered our call," Guaido said.

The opposition plans to hold a massive May Day protest in Caracas, where Maduro will also lead a rival rally.

Tensions in Venezuela have been ratcheted up to a critical level this year, after Guaido announced on January 23 that he was the acting president under the constitution. He said Maduro had been fraudulently re-elected last year.

Although Trump has repeatedly said "all options" are on the table regarding Venezuela -- including, implicitly, military action -- there has been no noticeable US military mobilization.

Instead, Washington has upped the economic pressure, through sanctions aimed at Maduro's regime and by cutting sales of Venezuelan oil -- its main revenue earner.