A Somali official says Islamic extremist rebels killed two men in a drive-by shooting in Somalia's capital, Mogadishu.

The al-Shabab extremist group claimed responsibility for the Wednesday attack claiming that they had killed a nephew of the president and another government official.

Capt. Mohammed Hussein, a senior Somali police officer confirmed that gunmen killed two men Wednesday but said their identities were still unclear.

Despite being forced out of many of their strongholds, al-Shabab rebels still launch lethal attacks in Mogadishu and elsewhere in Somalia, often targeting African Union troops and government officials.

Somali is grappling to restore peace after decades of violence following the 1991 ouster of dictator Siad Barre.