Twenty-seven members of Venezuela's National Guard have been arrested after they allegedly revolted against the government of President Nicolás Maduro, the defence ministry said.
Videos posted on social media showed the officers calling for the removal from office of President Maduro.
The men reportedly seized weapons from a National Guard command post in the Cotiza area of the capital, Caracas.
Footage also shows residents and security forces clashing in the area.
The incident comes a year after a rebel police helicopter pilot, Óscar Pérez, threw grenades at government buildings before being killed in a shoot-out with the security forces.
Read more about the crisis in Venezuela:
The ministry of defence said a "small group" of National Guard members had stolen weapons from a security post in the Petare neighbourhood of Caracas and taken four officers hostage before making their way to Cotiza in the early hours of Monday.
A video sent to opposition Twitter account @soldadoDfranela shows a man in uniform saying he is acting "on behalf of the Venezuelan people" and encouraging Venezuelans to take to the streets in protest at the government.
Mensaje a nuestro glorioso pueblo de venezuela, de parte de su fuerza armada patriota. pic.twitter.com/642bNkuCdL— Soldados de Franelas (@soldadoDfranela) January 21, 2019
According to the defence ministry statement, they encountered "strong resistance" from officers loyal to the government in the National Guard command post in Cotiza.
It is not clear whether they were overpowered or handed themselves in to the authorities. The statement goes on to say that the weapons they seized have been retrieved and that the men are being questioned.
It says the officers were driven by "the dark interests of the extreme right" without giving further details. The Venezuelan government routinely blames shadowy right-wing forces for any dissent in the country.
Footage shared on opposition websites shows residents of the neighbourhood taking to the streets in protest at the government in the wake of the overnight incident.
The residents complain about a lack of water and shout "we want Nicolás to go" as the security forces try to disperse them with tear gas. Some erect barricades and set them alight.
Venezuelans have been suffering from power and water cuts as well as severe shortages of food and medicines for years. According to United Nations figures, three million have left the country in recent years.
A wave of mass anti-government protests swept through the country in April and May 2017 but after the arrest of hundreds of demonstrators and a number of deadly clashes, the protests dwindled away with many saying they were too afraid to take to the streets.
But in the past weeks, the new leader of the opposition-controlled National Assembly, Juan Guaidó, has called on those critical of the government to resume their protests once again and has called for anti-government marches to be held on Wednesday.