Earlier in the day, Perez said he was negotiating the terms of surrender after he had been surrounded in the Venezuelan capital of Caracas.
According to the statement of the Venezuelan Interior Ministry aired by a national television channel, Perez and his accomplices opened fire killing two police officers and injuring five others.
On June 28, 2017, a group of security force officers headed by Perez hijacked a helicopter and assailed the Venezuelan Supreme Court in Caracas, opening fire and dropping several hand grenades, and also attacking the nearby Justice Ministry. After declaring the start of their fight against the government, the attackers disappeared. The government labeled the attack as an act of terror.
The incident came as a reaction to the voting on July 30 to elect the Constitutional Assembly set to rewrite the constitution as a way out of the political turmoil that started in January 2016, when a new opposition-controlled legislature was elected and relations between country's President Nicolas Maduro and the parliament became strained.