t came as no big surprise when a crumbling oil town in western Kazakhstan stirred in protest last Sunday, 10 years after security forces there killed more than a dozen workers who had gone on strike over pay and poor conditions.

But it remains a mystery how peaceful protests over a rise in fuel prices last weekend in Zhanaozen, a grimy, Soviet-era settlement near the Caspian Sea, suddenly spread more than a thousand miles across the full length of Central Asia’s largest country, turning the biggest and most prosperous Kazakh city into a war zone littered with dead bodies, burned buildings and incinerated cars.

The violence this week in Almaty, Kazakhstan’s former capital and still its business and cultural hub, shocked just about everyone — not only its leader, who, fortified by Russian troops, on Friday ordered security forces to “fire without warning” to restore order, but also government critics who have long bridled at repression and rampant corruption in the oil-rich nation.

The crisis coincided with a power struggle within the government, fueling talk that the people fighting in the streets were proxies for feuding factions of the political elite. There is also feverish speculation about Kremlin meddling and a host of other murky possible causes. About the only thing that is clear is that the country’s convulsions involve more than a straightforward clash between protesters expressing discontent and the heavy-handed security apparatus of an authoritarian regime.

With Kazakhstan now largely sealed off from the outside world — its main airports are closed or commandeered by Russian troops, while internet services and phone lines are mostly down — information is scarce.

Echoing the refrain of repressive leaders around the world confronted with protests, President Kassym-Jomart Tokayev on Friday lashed out at liberals and human rights defenders, lamenting that the authorities had been too lax.

Not many people are buying that, particularly as it is a message endorsed by Russia, which on Thursday sent in troops to help Mr. Tokayev regain control and has a long record of construing all expressions of discontent at home and in other former Soviet territory as the work of disgruntled liberal troublemakers.

But there is growing evidence that the mayhem in Almaty, the epicenter of this week’s turmoil, was more than just people power run amok.

President Tokayev, in an address to the nation on Friday, alluded to that, claiming that the violence was the work of some 20,000 “bandits” who he said were organized from “a single command post.” Calls for negotiations with such people, he added, were “nonsense” because “they need to be destroyed and this will be done.”

Sign up for updates on the unrest in Kazakhstan:  Every evening, we will bring you a roundup of our latest Kazakhstan coverage. 

Danil Kislov, a Russian expert on Central Asia who runs Fergana, a news portal focused on the region, speculated that the chaos was the result of “a desperate struggle for power” between feuding political clans, namely people loyal to President Tokayev, 68, and those beholden to his 81-year-old predecessor, Nursultan Nazarbayev.