Mogadishu: Somalia’s new president on Thursday declared the country a war zone and replaced its military and intelligence chiefs while instructing the army to prepare a new offensive against Al Shabab extremists.

The shake-up is an attempt to improve the worsening security situation as the Al Qaida-linked Al Shabab steps up its deadly bombings in the capital since President Mohammad Abdullahi Mohammad was elected in February. A car bomb blast on Wednesday at a Mogadishu restaurant killed at least seven people.

The Somali-American president wore a military uniform as he declared a “new offensive against terrorist groups.” He gave extremists a 60-day amnesty to surrender.

The declaration comes roughly a week after the Trump administration approved greater US military authority to pursue Al Shabab in Somalia, including more aggressive air strikes as parts of southern Somalia will be considered areas of active hostilities.

Thursday’s announcement is seen as an attempt by Mohammad to consolidate power in this long-chaotic Horn of Africa nation. He also replaced the country’s police chief and Mogadishu’s mayor.

Al Shabab has denounced the new president as an “apostate” and warned Somalis against supporting him. The group has been pushed out of the capital and other major urban areas in Somalia by national and African Union multinational forces, but it continues to carry out deadly bombings and attacks in Mogadishu and elsewhere. Targets have included hotels, military checkpoints and the presidential palace.

The extremist group is just one of the challenges facing the new government, which despite hundreds of millions of dollars of support from the international community still struggles to expand its authority beyond the capital and other selected areas.

Drought threatens about half of Somalia’s population of 12 million, the United Nations has said, and hijackings of cargo ships off the country’s coast in recent weeks have signalled a return to piracy on one of the world’s most critical shipping routes. Somalia also is called the world’s most corrupt nation by Transparency International.

Mohammad Ahmad Jimale was named the new chief of defence forces of the Somali National Army, replacing Maj. Gen. Mohamamd Adan Ahmad. Abdullahi Mohammad Ali was appointed as the national intelligence agency chief, replacing Abdullahi Mohammad Gafow. Ali has held the position in the past. Gen. Abdihakim Saeed was appointed as police chief, replacing General Mohammad Shaikh Hassan.