MOSCOW -- Troops of a Russia-led security alliance were preparing to pull out of Kazakhstan on Thursday, the Russian Defense Ministry said. The withdrawal comes only a week after they were deployed to the ex-Soviet nation on the request of its president, who was seeking to quell extremely violent mass protests.

The demonstrations started on Jan. 2 in western Kazakhstan, with local residents outraged by a sharp rise in fuel prices, and quickly spread nationwide, descending into violence within several days. Protesters stormed government buildings and set them ablaze, and dozens of people were killed in clashes with the country's security forces.

President Kassym-Jomart Tokayev has blamed the unrest on foreign-backed "terrorists" and requested assistance from the Collective Security Treaty Organization, a Russia-led military alliance of six ex-Soviet states. The bloc sent over 2,000 troops to Kazakhstan last week. On Tuesday Tokayev declared their mission complete and said they would start pulling out on Thursday.

Russia's Defense Ministry said Thursday that the troops in Kazakhstan were preparing equipment for transportation and handing over state institutions they guarded to local forces.

In Almaty, Kazakhstan's largest city that has been hit the hardest by the unrest, the airport resumed operation on Thursday morning, a week after it was stormed and briefly seized by the protesters. Russia's Interfax news agency also reported that the security forces have cleared the square in front of the city hall, which was stormed and set on fire, opening it for pedestrians and car traffic.

Authorities in Almaty on Thursday reported detaining nearly 2,000 more people over their alleged involvement in the unrest and looting.