Somali soldiers stand near the wreckage of a car bomb attack that targeted a checkpoint in Mogadishu, Somalia Tuesday, March 21, 2017. The car bomb exploded Tuesday at a military checkpoint near Somalia's presidential palace in the capital, after soldiers tried to stop the car and the bomber tried to speed through the checkpoint, killing a number of people, police said. (AP Photo/Farah Abdi Warsameh)

Somali soldiers stand near the wreckage of a car bomb attack that targeted a checkpoint in Mogadishu, Somalia Tuesday, March 21, 2017. The car bomb exploded Tuesday at a military checkpoint near Somalia's presidential palace in the capital, after soldiers tried to stop the car and the bomber tried to speed through the checkpoint, killing a number of people, police said. (AP Photo/Farah Abdi Warsameh)

MOGADISHU, Somalia (AP) — A car bomb exploded Tuesday at a military checkpoint near Somalia’s presidential palace in the capital, killing at least six people, the spokesman for Mogadishu’s mayor said.

The dead included a soldier and five civilians, Abdifitah Halane said. Another dozen people were injured.

The blast was detonated after soldiers tried to stop the car and the bomber tried to speed through the checkpoint, police Capt. Mohamed Hussein said.

The checkpoint is one of several that motorists must go through before reaching the heavily guarded presidential palace, which has seen previous attacks by the al-Qaida-linked extremist group al-Shabab.

The group later claimed responsibility for the blast via its radio arm, Andalus.

The blast came a few hours after Somalia’s new prime minister unveiled a 26-member cabinet, the latest step as the fragile central government tries to further assert itself beyond the capital.

ADVERTISEMENT

The threat of al-Shabab attacks is a major challenge for the country’s new Somali-American president, Mohamed Abdullahi Mohamed, who has vowed to make security a priority in this Horn of Africa nation.

But the extremist group, which was kicked out of Mogadishu under Mohamed’s brief term as prime minister in 2010-2011, has denounced the new president as an “apostate” and warned Somalis against supporting him.

Al-Shabab has lost most of its key strongholds across south and central Somalia to a multi-pronged offensive by allied Somali and African Union forces. But despite being ousted from most cities and towns, the group continues to carry out deadly attacks, many by suicide bombers, including in Mogadishu.