Prisoners in Peru have rioted in protest against their precarious living conditions following the deaths of several fellow inmates with coronavirus, but the revolt itself proved fatal, with nine prisoners killed, authorities said.

Officials said Tuesday the inmates were shot during a clash with authorities at Miguel Castro Castro prison in Lima a day earlier. Who fired the shots was under investigation.

Hundreds of inmates gathered around the bodies of two of the dead in a common space of the prison late on Monday afternoon.

Virus Outbreak Peru
Inmates hold a sign that reads “Right to life” in Spanish (Rodrigo Abd/AP)

Images taken by the Associated Press show one of the dead men was surrounded by candles and placed next to a cross and an illustration of Jesus Christ that is venerated in Peru.

“Right to life,” read a large sign created by the prisoners with black cloth and white letters. “We want to live but outside these walls.”

Peru’s overcrowded jails have been hard hit by the coronavirus. At least 13 prisoners have died and more than 500 have been infected. Over 100 workers have also fallen ill.

Virus Outbreak Peru
Relatives look at the prison from a hilltop (Rodrigo Abd/AP)

Throughout Latin America, prisons are notoriously overcrowded, violent and dominated in large part by gangs or corrupt officials.

Overall there are 1.5 million inmates in the region’s jail cells, which often lack basic necessities like soap and water.

Governments in the region have reported close to 1,400 confirmed Covid-19 cases among inmates and prison staff, though advocates say not enough testing is taking place.

Peru has nearly 30,000 confirmed cases total of Covid-19, the second highest number in the region following Brazil. Health authorities say 782 have died.