Sudanese celebrate after officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power in Khartoum, Sudan, Thursday, April 11, 2019. (AP Photo)

CAIRO (AP) — Sudan's military overthrew President Omar al-Bashir on Thursday after months of bloody protests against his repressive 30-year rule. But pro-democracy demonstrators vowed to keep up their campaign in the streets after the military said it would govern the country for the next two years.

Al-Bashir's fall came a week after Algeria's long-ruling, military-backed president, Abdelaziz Bouteflika, was driven from power. Together, the developments echoed the Arab Spring uprisings eight years ago that brought down autocrats across the Mideast.

The announcement of the arrest and removal of the 75-year-old al-Bashir was made by a veteran insider in his government, Defense Minister Awad Mohammed Ibn Ouf, who is under U.S. sanctions for links to atrocities in Sudan's Darfur conflict.

Ibn Ouf said a military council that will be formed by the army, intelligence and security apparatus will rule for two years, after which "free and fair elections" will take place. Sudan's state-run media later said Ibn Ouf was being sworn in as head of the new council.

The defense chief also announced that the military had suspended the constitution, dissolved the government, declared a state of emergency for three months, closed the country's borders and airspace and imposed a curfew.

Protesters who were initially jubilant over word of the coup reacted by saying they will not end their nearly week-long sit-in outside the military's headquarters in central Khartoum until a civilian transition government is formed.

Well after nightfall, tens of thousands beat drums, sang and chanted slogans against the armed forces and Ibn Ouf. One of the organizations leading the protest said people were staying in streets of defiance of the 10 p.m. curfew.

"The first one fell, the second will, too!" protesters shouted. And: "They removed a thief and brought in a thief!"

"What is happening in Sudan is that the old system is being rebuilt in new clothes," said activist Mohammed Hisham. "I'm 30 years old, and my whole life we have suffered from lack of freedom and continuous threats."

Al-Bashir's whereabouts were not immediately known. Ibn Ouf said only that he was being held in "a safe place."

Human rights groups urged Sudanese military authorities to hand al-Bashir over to the International Criminal Court, where he faces charges of war crimes, crimes against humanity and genocide for his deadly campaign against insurgents in Darfur.

Amnesty International's secretary general, Kumi Naidoo, said al-Bashir is wanted for "some of the most odious human rights violations of our generation."

In Washington, the U.S. State Department called on the Sudanese military to "follow the will of the people" and "commit to the speedy handover to civilian rule."

Al-Bashir came to power in a coup of his own in 1989, backed by the military and Islamist hard-liners. He kept an iron grip on power and brutally suppressed any opposition, while monopolizing the economy through allied businessmen.

Over his three decades in control, he was forced to allow the secession of South Sudan after years of war, a huge blow to the north's economy. He became an international pariah over the bloodletting in Darfur. And the U.S. targeted his government repeatedly with sanctions and airstrikes for his support of Islamic militants.

Throughout, he was a swaggering figure known to break into dance and wave his cane in front of cheering crowds.

The protests — involving a mix of young activists, students, professional-employee unions and opposition parties — erupted in December and were initially fueled by anger over the deteriorating economy but quickly turned to demands for the president's ouster.

Security forces came down hard on the protesters with tear gas, rubber bullets, live ammunition and batons, and the clashes left dozens of people dead. Al-Bashir banned unauthorized public gatherings, imposed a state of emergency and granted sweeping powers to the police.

After Bouteflika's resignation in Algeria, the protests escalated and the clampdown grew bloodier, with at least 22 people killed since Saturday.

Word of al-Bashir's overthrow initially set off cheering, dancing and singing in the streets by thousands of protesters, until they heard the official announcement from Ibn Ouf that the military would remain in charge.

The defense chief denounced al-Bashir's government for "bad administration, systemic corruption, absence of justice," adding: "The poor became poorer and the rich became richer. Hope in equality has been lost." He also said al-Bashir's crackdown against protesters risked splitting the security establishment and "could cause grave casualties."

Mariam al-Mahdi, a leading member of the opposition Umma, called the military's takeover "a dangerous move."

"Our demands are clear: We don't want to replace a coup with a coup," al-Mahdi said.

__

AP correspondent Sarah El Deeb in Beirut contributed to this report.

FILE -  In this file image taken from video, Sudan's President Omar al-Bashir speaks at the Presidential Palace, Friday, Feb. 22, 2019, in Khartoum, Sudan. Tens of thousands of Sudanese were making their way to the center of the country’s capital on Thursday, April 11, 2019, cheering and clapping in celebration as two senior officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power.(AP Photo/Mohamed Abuamrain, File)
Protesters celebrate in Khartoum, Sudan, Thursday, April 11, 2019. Tens of thousands of Sudanese were making their way to the center of the country’s capital on Thursday, cheering and clapping in celebration as two senior officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power. (AP Photo)
Sudanese celebrate after officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power in Khartoum, Sudan, Thursday, April 11, 2019. (AP Photo)
Sudanese celebrate after officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power in Khartoum, Sudan, Thursday, April 11, 2019. (AP Photo)
Protesters rally at a demonstration near the military headquarters, Tuesday, April 9, 2019, in the capital Khartoum, Sudan. Activists behind anti-government protests in Sudan say security forces have killed at least seven people, including a military officer, in another attempt to break up the sit-in outside the military headquarters in Khartoum. A spokeswoman for the Sudanese Professionals Association, said clashes erupted again early Tuesday between security forces and protesters who have been camping out in front of the complex in Khartoum since Saturday. (AP Photo)
Protesters rally near the military headquarters, Tuesday, April 9, 2019, in the capital Khartoum, Sudan. Activists behind anti-government protests in Sudan say security forces have killed at least seven people, including a military officer, in another attempt to break up the sit-in outside the military headquarters in Khartoum. A spokeswoman for the Sudanese Professionals Association, said clashes erupted again early Tuesday between security forces and protesters who have been camping out in front of the complex in Khartoum since Saturday. (AP Photo)
FILE - In this May 10, 2001, file photo, Libyan leader Moammar Gadhafi , left, is greeted by President Omar El-Bashir, center, upon his arrival in Khartoum for a two-day visit to Sudan. Tens of thousands of Sudanese were making their way to the center of the country’s capital on Thursday, April 11, 2019, cheering and clapping in celebration as two senior officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power. (AP Photo/Abdel Raouf, File)
FILE -  In this Dec. 25, 2017, file photo, Turkey's President Recep Tayyip Erdogan, second left, and Sudan's President Omar al-Bashir, center, walk in Port Sudan, Sudan. Sudan's armed forces were to deliver an
FILE - In this Dec. 26, 2004, file photo, Sudanese President Omar al-Bashir (right) received Yemeni president Ali Abdallah Salih (left) at the airport in Khartoum Sunday, December 26, 2004. Sudan's armed forces were to deliver an
FILE -  In this May 18, 2018, file photo, Sudan's President Omar al-Bashir speaks during the extraordinary summit of the Organization of Islamic Cooperation (OIC), in Istanbul, Turkey.  Sudan's armed forces were to deliver an
FILE - In this Wednesday, Jan. 9, 2019 file photo, Sudanese President Omar al-Bashir greets his supporters at a rally in Khartoum, Sudan. Sudan's armed forces were to deliver an
Protesters celebrate in Khartoum, Sudan, Thursday, April 11, 2019. Tens of thousands of Sudanese were making their way to the center of the country’s capital on Thursday, cheering and clapping in celebration as two senior officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power. (AP Photo)
Sudanese celebrate after two senior officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power in Khartoum, Sudan, Thursday, April 11, 2019. (AP Photo)
Sudanese celebrate after two senior officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power in Khartoum, Sudan, Thursday, April 11, 2019. (AP Photo)
Sudanese celebrate after officials said the military had forced longtime autocratic President Omar al-Bashir to step down after 30 years in power in Khartoum, Sudan, Thursday, April 11, 2019. (AP Photo)