In a deadly shootout on Monday that transfixed Venezuela, security forces surrounded the Caracas hide-out of a rebel band led by a rogue helicopter pilot who was once an action movie actor and is now the government’s most wanted man.

“They don’t want us to surrender, they want us dead!” the rebel leader, Óscar Pérez, shouts in one of a series of videos posted on Twitter that showed him bloodied and under siege.

In a statement on Monday, Venezuelan officials said they had dismantled what they called a dangerous terrorist group, saying five members had been captured. Two police officers were killed and five were injured, they said.

Photos posted on social media sites that were said to have been leaked from the scene of the firefight showed what were believed to be the bodies of dead rebels.