DURANGO, Mexico - A shootout during a prison break at a penitentiary in northern Mexico late Tuesday has left at least 11 inmates and six guards dead, authorities said.

Durango state Public Safety Department said guards foiled "a massive prison escape" at the Cereso No. 2 facility in the city of Gomez Palacio.

The inmates tried to climb the prison's back walls and when guards fired into the air to stop them the firefight ensued, a statement from the department said.

"The inmates started firing guns into the watchtowers and into custodian areas," it said. At least 17 people were killed.

Soldiers surrounded the prison and helped stop the prison break, it said, adding that the prison was back under the control of authorities.

Mass prison breaks are not uncommon in Mexico. In September, more than 120 inmates escaped from a prison in the border city of Piedras Negras, across the border from Eagle Pass, Texas.

Authorities attribute the jailbreaks to drug gangs trying to swell their ranks as they fight bloody turf battles throughout Mexico, including Durango, where the Sinaloa and Zetas drug cartel are fighting for control.