Updated

At least four people including three police officers were killed Tuesday in an hours-long prison shootout involving inmates and security forces in a northern Mexican border state, authorities said.

Loud, sustained bursts of gunfire could be heard from just outside the gates of the lockup in Ciudad Victoria, the capital of Tamaulipas state. Heavily armed security forces stood guard.

Sporadic shooting continued Wednesday and at least six people were reported injured.

A state police officer who emerged from the prison with scratches on his face and did not give his name said inmates were armed with automatic rifles.

2 DEAD, 13 INJURED IN MEXICO PRISON RIOT

State security spokesman Alberto Rodriguez said in an interview with Milenio TV that three state police officers and one unidentified person were killed and six others were wounded.

The wounded were also officers, said an official with the state prosecutor's office who was not authorized to make public statements and spoke on condition of anonymity.

Government photos from a helicopter overflight showed what appeared to be white smoke rising from one building. Authorities closed nearby roads, and surrounding areas were under an evacuation alert.

AT LEAST 52 INMATES DEAD AFTER RIOT, FIRE AT MEXICO PRISON

Relatives of prisoners said the violence apparently broke out due to a conflict between local inmates and others who were recently transferred from a prison in the border city of Nuevo Laredo.

Uprisings are relatively common at Mexican prisons, where inmates often exercise de facto control of their own environments.

Tamaulipas, a Gulf coast state bordering Texas, has seen high levels of violence in recent years as rival drug gangs and factions battle for control.