São Paulo (Web Desk): At least 21 people were killed in an attempted breakout from a prison in northern Brazil aided by an armed group on the outside trying to blow up a wall, media reported.

According to officials, gunmen attacked a prison in northern Brazil while trying to enable a mass escape of inmates on Tuesday, setting off a gun battle with the police that killed 20 people and injured at least four, authorities said.

Public security officials in Para State identified 19 of the dead as prisoners or their supporters. A guard at the prison , the Santa Izabel Penitentiary, also died.

Officials were doing a head count inside the prison Tuesday night to determine whether any inmates escaped.

In a statement, police investigator Rodrigo Leao said two assault weapons, three pistols and two other guns were seized from a group that tried to get into the prison to enable a breakout by inmates.

The attempted breakout began when explosives were used against a prison wall, according to a statement from the state’s public security secretariat. The police and guards then exchanged gunfire with the armed men trying to help inmates escape and with the inmates themselves who were armed, it said.