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.

Hezbollah warns Israeli residents to evacuate towns near border
US House rejects war powers resolution, backs Trump on Iran war
Saudi Arabia, Qatar, Kuwait intercept drones targeting territory
GCC and EU ministers urge immediate halt to Iranian attacks
India's tech state Karnataka bans social media for children under 16
Indonesia says it will withdraw from Board of Peace if it does not benefit Palestinians
Trump wants say on Iran's next leader
US, Venezuela agree to re-establish diplomatic ties
