Kazakhstan's former intelligence chief has been arrested on suspicion of treason following nationwide anti-government protests.
Karim Massimov's suspension was announced by the National Security Committee, which he headed until his departure this week.
Authorities now appear to be back in control of the larger city of Almaty.
But President Kassym-Jomart Tokayev has said that "terrorist" attacks are still happening in some countries.
He made the comments in a phone call with his Russian counterpart Vladimir Putin, who sent hundreds of troops to Kazakhstan this week to help restore order.
President Tokayev has blamed foreign-trained "terrorists" for the unrest, without providing evidence.
The protests began in response to rising fuel prices, but grew to reflect discontent with the government and former president Nursultan Nazarbayev, who ruled the country for three decades and is still thought to wield significant influence.
also
The withdrawal of foreign troops from Kazakhstan begins
The Interior Ministry said 26 "armed criminals" and 18 security officers were killed in the clashes.
More than 4,000 people have been arrested, according to the ministry.
Meanwhile, the US Secretary of State, Anthony Blinken, has recently stated that Kazakhstan's request for help from Russia was unnecessary in this case.