Barquisimeto, Venezuela: A prison riot in northern Venezuela has left at least 11 people dead and 28 others wounded, a rights group said Friday, the latest tragedy to hit the country’s desperately overcrowded detention facilities.

The incident at the prison in the town of Iribarren, which erupted on Thursday, came just days before socialist President Nicolas Maduro seeks re-election in the crisis-hit South American country.

“There was an uprising resulting in 11 deaths, including two guards and nine prisoners,” Carlos Nieto, the director of prisoners’ rights group A Window on Freedom, told AFP.

Inmates snatched a gun from a guard, sparking a 20-minute shootout, the group said, quoting family members of the victims.

On Friday, authorities had regained control of the prison, where about 100 relatives of the prisoners gathered, seeking information about the deadly violence.

In the morgue in the nearby town of Barquisimeto, others came to identify the dead, some of them with bullet or stab wounds.

The bodies of the 11 dead are “in terrible condition, a lot of wounded, stabbed, shot. Thank God my brother is not there,” said one female relative of a prisoner, who asked not to be identified.

Venezuela’s prisons suffer from dire overcrowding and a shortage of basic supplies, struggling under the deepening economic crisis that is gripping the once-wealthy oil-producing country.

Nearly 400 people have died in the country’s prisons since 2011, according to official figures and rights groups.

In March, 68 people died in a fire in a police station’s jail in the northern city of Valencia. The blaze was started by detainees who wanted to force the guards to unlock the cells in a bid to escape.

Last month, five police officials were charged with homicide over the fire, one of the deadliest in Venezuela’s long history of prison disasters and which triggered national outrage and UN condemnation.

A Window on Freedom has blamed the government for overcrowding at provisional detention centres, where prisoners are not supposed to spend more than 24 hours but can remain many months awaiting trial.

The group estimates the prison system to be 400 per cent overpopulated.

Maduro is seeking a second six-year term in a controversial election on Sunday that is being boycotted by the opposition.

He is the clear favourite, despite trailing in opinion polls to his main rival Henri Falcon, and a low approval rating among Venezuelans fed up with hyperinflation, food and medicine shortages, rising crime and broken water, power and transportation networks.

One inmate held in the prison in Iribarren is an opposition deputy, Gilbert Caro, who was detained in January 2017 for planning “terrorist actions.”

His lawyer, Ramon Carmona, told AFP he doubted that Caro was hurt in the riot as he had been isolated from other prisoners. The lawmaker had been scheduled to be transferred to a military prison but Carmona said it was not clear if that had occurred.