(CNN) At least 22 people were killed when inmates tried to escape from a prison in northern Mexico Tuesday, firing guns at guard towers and running through tunnels below the facility.

The dead included 13 inmates and nine guards, Durango state public safety officials said in a statement.

The violence broke out around 5 p.m. Tuesday at a prison in the city of Gomez Palacio when prisoners began to riot and opened fire, officials said.

“The inmates started to shoot with firearms toward the guard towers and the guard areas,” the statement said.

Note: Read our discussion guidelines before commenting.