BEIRUT (Reuters) - Syrian government troops surrounded Hama prison in the west of the country on Monday and fired tear gas after inmates revolted, seizing several guards, a monitoring group reported.

The Syrian Observatory for Human Rights said inmates were protesting against a planned transfer of prisoners from Hama to Sednaya military prison north of Damascus. Those held in the Hama jail include political and Islamist prisoners, it said.

An insurgent group operating near Hama, located 210 km (130 miles) from Damascus, said it was ready to shell government militias in towns nearby in response to mistreatment of the inmates, who it said were demanding “basic rights” including trial, the British-based Observatory reported.

The Ajnad al-Sham group said prisoners had urged the armed opposition to “break the siege” by government forces.

Insurgents later shelled Maharda, one of the towns Ajnad al-Sham threatened to attack, the Observatory reported. It was not immediately clear if the shelling was linked.

An interior ministry official denied “reports from some media about Hama central prison”, state news agency SANA said, without elaborating.

In August last year hundreds of inmates at the prison rioted in protest against conditions and harsh sentences.

International rights groups say thousands of detainees are held in Syrian government prisons without charge and many of them are subjected to torture, a claim denied by the authorities.

The Syrian conflict began in 2011 with popular protests against President Bashar al-Assad and spiralled into civil war after a crackdown by security forces.