CARACAS, Venezuela â€” Explosions caused pandemonium at a military ceremony where President NicolĂˇs Maduro of Venezuela was speaking on Saturday, making the first lady flinch and sending National Guard troops scurrying in what administration officials called an assassination attempt using drones.
The president, who was unharmed, later told the nation, â€śTo all of our friends in the world, I am fine, I am alive.â€ť He blamed right-wing elements and said, â€śThe Bolivarian revolution keeps its path.â€ť
Mr. Maduro has presided over a spectacular economic collapse in Venezuela, where inflation is expected to reach one million percent this year despite the countryâ€™s large oil reserves. Economists blame decades of mismanagement under Mr. Maduro and his predecessor, Hugo ChĂˇvez.
The drone attack was the latest in a string of attempts in recent years to end the tenure of Mr. Maduro, who was declared the victor of an election in May that carries his term until 2025. No previous assaults have been as bold, though, and this appeared to have been the first assassination attempt on a head of state using drones.
It was an attack that seemed scripted for Hollywood: Off-camera explosions. Low-flying drones exploding midair. The president and first lady ducking for cover. Thousands of soldiers in a military parade suddenly fleeing in a stampede that was broadcast to the country, live.
Jorge RodrĂguez, the communications minister, said the attackers had used â€śseveral flying devicesâ€ť that were detonated near where the president was standing.
The attack came shortly after 5:30 p.m. during an event the government said was meant to celebrate the 81st anniversary of the countryâ€™s National Guard.
During the presidentâ€™s speech, which was broadcast live on state television, the camera began to shake. Mr. Maduro then looked into the air as his wife, Cilia Flores, flinched and reached for another official to brace herself.
The video feed was interrupted, but Mr. Maduro could be heard continuing to talk as voices in the background yelled for people to flee.
The video feed then showed figures dressed in black breaking through a barrier from the sidelines of a wide street where hundreds of uniformed guardsmen were arrayed in formation. The figures in black ran toward the guardsmen, who abruptly fled in panic.
The transmission then cut off.
Mr. Maduro, addressing the nation just before 9 p.m., blamed right-wing elements in Venezuela and Colombia for the attack, and said that President Juan Manuel Santos of Colombia was also responsible.
â€śAll the investigations point to BogotĂˇ,â€ť he said, accompanied by his ministers and military high command. â€śThey have tried to kill me today.â€ť Mr. Maduro also suggested involvement by unidentified Americans.
Carlos Julio Rojas, an activist in Caracas, said that he had just arrived to protest water shortages when he felt the first explosion.
â€śWe thought it was a bolt of lightning, but with the second explosion we could see the wall vibrating,â€ť he said. â€śWe saw the soldiers running.â€ť
Mr. Rojas said neighbors told him they had seen drones approach and explode midair.
Figures aligned with the opposition condemned the attack.
â€śThis is not the way out of the Venezuelan crisis,â€ť said Nicmer Evans, a political scientist who has campaigned with the opposition. â€śNo one wants the exit to be the death of someone to resolve this countryâ€™s situation.â€ť
It was not the first time that the government, which has presided over years of food shortages and rules with an authoritarian fist, has suffered a spectacular attack in its capital.
In June 2017, Ă“scar PĂ©rez, a rogue police officer, commandeered a helicopter and used it in a brazen midday assault to drop grenades on the Supreme Court building and to fire on the Interior Ministry.
Mr. PĂ©rez took to Instagram to call for others to join his cause and wage attacks against military bases, but he was killed by the government during an assault in January.
In another attack last year, a group of soldiers struck a military barracks west of Caracas. Like Mr. PĂ©rez, they released videos calling for others to join their cause, but no rebellion materialized.
And in 2016, Mr. Maduro himself was attacked by a mob who chased him down the street banging pots and pans and screaming that they had no food.
Despite widespread discontent, Mr. Maduro continues to hold power. His most popular rivals were banned from running in elections this spring, and opposition parties boycotted and said the vote was rigged.
Analysts said Saturday that while the attack might be used to drum up support for the president, it was a deep embarrassment for Mr. Maduro.
â€śIt will boost his rhetoric and give some substance to his conspiracy theories,â€ť said David Smilde, an analyst at the Washington Office on Latin America, a human rights group. â€śBut the optics of this weaken him. The images of him being interrupted in mid-speech and the armed forces running away make him look vulnerable.â€ť
Mr. Smilde dismissed theories on Saturday that the government had organized a failed attack to build support for Mr. Maduro. He said the attack appeared â€śamateurish.â€ť
A United States State Department official said its Caracas embassy had issued a security alert. Leaders friendly to Mr. Maduro offered their support and cast suspicion on foreign powers.
â€śWe energetically repudiate this new aggression and cowardly attack,â€ť said Evo Morales, Boliviaâ€™s president and a fellow leftist. â€śAfter failed attempts to topple him democratically, economically, politically and militarily, now the empire and its servants try to take his life.â€ť
That wasnâ€™t the reaction of some residents who stood nearby as officials fled.
â€śRunning like rats,â€ť said a woman who filmed a video of the soldiers and officials fleeing on Saturday. â€śAll of those fancy cars of the plugged-in elites trying to get away at the same time.â€ť
Ana Vanessa Herrero reported from Caracas, and Nicholas Casey from PopayĂˇn, Colombia.