A top general and allied members of the military tried to storm the presidential palace in Bolivia on Wednesday, before quickly retreating in an apparently failed attempt at a coup.

Hours later, the general was taken into custody on live TV.

Video on Bolivian television showed security forces in riot gear occupying the main square in the administrative capital, La Paz, a camouflaged military vehicle ramming a palace door and soldiers trying to make their way into the building.