Heavily armed men dressed in military fatigues and police uniforms stormed a court building in north-west Honduras and freed a senior leader of the powerful MS-13 gang, officials say.
Alexander Mendoza, known as "El Porky", had just arrived for a trial hearing in El Progreso, escorted by security forces, when the attack took place.
At least four officers were killed and three others were wounded.
MS-13 is one of the most violent criminal groups in Central America.
President Juan Orlando Hernández offered a reward of 2 million lempiras (£62,000; $80,000) for information that leads to Mendoza's recapture.
Police said at least 20 gunmen took part in the operation on Thursday afternoon in El Progreso, around 30km (18 miles) east of Honduras' second city, San Pedro Sula.
One of the suspects also died in the attack.