Russia's security services shot dead four inmates on Friday who had taken hostages at a jail in Volgograd and fatally stabbed four of its staff.
"Snipers of the special forces of the Russian National Guard in the Volgograd region, with four precise shots, neutralised four prisoners who had taken prison employees hostage. The hostages have been released," state news agency RIA quoted the National Guard as saying.
The federal prisons service said all four attackers had been "liquidated". It said four of its staff had died of stab wounds, and others had been treated in hospital. A total of eight prison employees and four convicts had been held hostage, it said.
The operation to free the captives took place after President Vladimir Putin, addressing a weekly meeting of his Security Council, said he wanted to hear from the interior minister, FSB security chief and head of the National Guard about the incident.
The demands of the hostage-takers were not clear, though in rambling monologues they said that Russia "oppresses Muslims everywhere" and that they had acted "without mercy" in response to alleged mistreatment of Muslim prisoners.
Russian news media said the four were citizens of Tajikistan and Uzbekistan, and that three were in jail for drugs offences and the other for murdering someone in a fight.

Hong Kong court finds tycoon Jimmy Lai guilty in landmark security trial
Ukraine peace talks stretch into second day at start of pivotal week for Europe
Flash floods kill at least 37 people in Morocco's Safi province
'Hero' who disarmed Bondi gunman recovering after surgery, family says
School bus accident in Colombia kills 17, injures 20
Australia plans tougher gun laws after father and son kill 15 at Bondi Beach
Police to release man detained over Brown University mass shooting
Shooting at Australia's Bondi Beach kills 12
