Almost all of the inmates of a prison in south-central Nigeria were broken when armed gunmen breached the perimeter fence of the facility, freeing 266 prisoners.
A soldier and a police officer were killed in the attack and two guards were missing, the interior ministry reported. It was the second major jailbreak in Nigeria this year.
The attackers used explosives to destroy the fence on three sides and fought a gun battle with guards at the medium-security prison at Kabba in Kogi state, southwest of the federal capital Abuja, authorities stated.
Nigeria is struggling with security problems across its vast territory, including armed robberies by criminal gangs, an insurgency in the northeast and a spate of mass school abductions in the northwest.
Twenty-eight out of the 294 inmates at Kabba had not escaped, the interior ministry added, meaning 266 had got away. The prison service had initially put the number of fugitives at 240.
It was the second major jailbreak this year after gunmen attacked a prison in Owerri in southeastern Imo State in April, freeing more than 1,800 inmates.
Police blamed the Owerri jailbreak on a banned separatist movement, the Indigenous People of Biafra (IPOB), which campaigns for several southeastern states to split from Nigeria. IPOB denied any involvement.
Kogi state is not part of the region IPOB wants to see secede. The authorities said the Kabba attackers had not been identified, and they did not suggest a reason for the raid.
The prison service said the Kabba jail was established in 2008 with a capacity for 200 inmates. At the time of the attack there were 224 pre-trial detainees and 70 convicted offenders in the jail, it added.
Suspects can spend years in pre-trial detention in Nigeria. Human rights groups say prisons are often overcrowded and legal procedures inefficient.
The interior ministry announced there were 15 soldiers, 10 police officers and 10 armed prison guards on duty at the Kabba jail at the time of the raid.