Updated

Peruvian officials say a riot by about 500 inmates at a northern prison killed two inmates and six guards were held hostage until negotiations got the prisoners to end their protest.

Chief Cabinet minister Javier Velasquez says the violence erupted on New Year's Eve in the prison in Chachapoyas, about 400 miles northeast of Lima.

Velasquez says he's not sure what caused the riot, but local Television N says inmates want a change in prison management because of a crackdown on drugs and cell phones.

The rioters met with high-level officials Friday, then freed the five male and one female guards taken hostage.