The military announced Monday that it had seized power in Burkina Faso, suspending the Constitution and ousting the president hours after mutinous soldiers surrounded his home.

Iran PressAfrica: President Roch Marc Christian Kaboré, 64, had been leading Burkina Faso, a poor, landlocked country in Western Africa, since 2015. But he faced growing criticism from civilians and the military alike over his government’s inability to beat back the Islamist insurgents creating havoc in this nation of 21 million people.

Burkina Faso had remained largely peaceful until 2015. But that year, militant groups launched a violent campaign as part of a broader upheaval in the Sahel, the vast stretch of land just south of the Sahara.

The violence has destabilized large swathes of Burkina Faso, displacing 1.4 million people and causing 2,000 deaths just last year alone. And it led to mounting public frustration with Mr. Kaboré, who, younger people, especially, faulted for the government’s failure to stem the tide of violence.

In the past year, there has been a flurry of coups in  Africa, the greatest concentration in years, with takeovers in Guinea, Sudan, Chad, and Mali.

The coup in Burkina Faso was announced on state television late Monday afternoon by a junior army officer who said the army had seized power in response to the “exasperation of the people.” Beside him sat Lt. Col. Paul-Henri Damiba, a senior military officer who was introduced to the people of Burkina Faso as their new head of state.

The military said the nation’s land and air borders would be closed, and a nightly curfew imposed until further notice.

There was no mention of Mr. Kaboré’s whereabouts and no indication that he had agreed to step down. “The authorities have been captured without bloodshed and are being kept in a secure place,” the soldier said.

The military’s announcement came after a turbulent day in Burkina Faso.

On Sunday, soldiers seized several military bases and the riot police clashed with civilian protesters. In the evening, shots were heard near the president’s home, lasting into the early hours of Monday, setting off hours of uncertainty amid reports that the military was pressuring the president to resign.

In the afternoon, a tweet had appeared on President Kaboré’s account that asked people to stand fast behind their tottering democracy. “Our country is going through a difficult time,” he wrote, urging mutinying soldiers to lay down their arms. Public support for the mutiny was driven by a perception that Mr. Kaboré was incapable of beating back the Islamist groups that have been spreading mayhem for so long, said Rinaldo Depagne, an expert on Burkina Faso at the International Crisis Group.

“He’s not absolutely awful and corrupt,” Mr. Depagne said of the deposed leader. “But it’s obvious that people think, rightly or wrongly, that a man in uniform with a big gun is better able to protect them than a democratically elected president.”

Hours before the coup was formally announced, some residents of the capital welcomed it as a foregone conclusion.

Soldiers stood guard outside the state-owned broadcaster from early morning as young men on motorbikes streamed past, honking their horns and cheering. At a nearby cellphone market, Kudougou Damiba threw himself to his knees.

“We are saved!” declared the cellphone dealer. “Roch is gone.”Mr. Damiba blamed the president for his own downfall, saying he failed to unite people against the rising tide of Islamist violence.

“The country has been fractured,” he said. “Instead of uniting people, Roch divided them, which allowed the jihadists to attack us. It’s his fault.”

Blame has also fallen squarely on the former colonial power, France, which has deployed troops to the Sahel region, including Burkina Faso, in an effort to counter Islamist attacks, although the situation continues to deteriorate.

Not everyone welcomed the military takeover. Among the customers at the cellphone market was Anatole Compaoré, an unemployed 31-year-old.

Mr. Compaoré took part in a wave of recent street protests against Mr. Kaboré’s rule, but even so, he was skeptical that a new bout of military rule would solve his country’s problems.

When Blaise Compaoré, Burkina Faso’s leader of 27 years, was overthrown in 2014, “they said everything would change,” he said. “But nothing changed. And I’m not sure it will be any different this time.”Over the past year, Saharan Africa has experienced a surge in military takeovers and a marked backslide in democracy, with coups in at least four countries.

Chad, Guinea, Mali, and Sudan — soldiers have seized power in all of them.

And in recent months, Burkina Faso was already looking like it might be next, with the country’s government destabilized by a wave of Islamist violence that has intensified over the past years in the Sahel, the semi-arid region stretching from Senegal to Chad on the southern flank of the Sahara.

Experts say the four successful military coups in Africa in the span of one year are the most in more than 40 years. And in some cases, citizens frustrated by government incompetence and corruption, and desperate for change, have urged soldiers to dismantle their own democracies.

The coups that marked African politics in the 1970s and 1980s had been beginning to look like largely a thing of the past. Since 2015, there have been at least 30 peaceful transitions of power in sub-Saharan African countries, even if many leaders have found other ways to stay in office, bending the rules to ensure they don’t have to give up power.

Perhaps the most notable leadership change recently was the one in Sudan, where a coup last fall halted a democratic transition that followed the 2019 ouster of the country’s longtime autocratic ruler, Omar Hassan al-Bashir.

Prime Minister Abdalla Hamdok briefly returned to power in November — but then resigned early this month. That left Sudan with no civilian government to help steer a country that is only just emerging from a dictatorship that lasted three decades.

In Guinea, the head of the country’s special forces led a coup in September against President Alpha Condé, who had changed the Constitution to stay in power beyond the two-term limit.

In Mali, military leaders ousted civilian leaders in May, just nine months after the previous president, Ibrahim Boubacar Keita, was forced out in a military coup. Mr. Keita died earlier this month.

And in Chad, a 38-year-old general, Mahamat Idriss Déby Itno, has been ruling the country since last April, when his father, Idriss Déby, died as he was commanding his troops against rebel soldiers.

211