A suicide bomber detonated a bomb trapped vehicle outside a local government office and another did the same a marketplace some miles away killing at least 17 people and wounding more than 30 others in the northern semi-autonomous state of Puntland, officials said.
Al-Shabab has claimed responsibility for the attack.
Somali Prime Minister Omar Abdirashid Sharmarke has condemned the attacks and police said more tha 15 people were transported to the hospital with serious wounds.
Abdikareem Ali, a local nurse told The Associated Press that some were burnt beyond recognition.
Some of the bodies were discovered in nearby houses destroyed by the blasts, said Col. Muse Hassan, a senior police officer.
The White House strongly condemned the attacks in Puntland accusing the terrorists of attempting “to weaken Somalia ahead of its historic scheduled political transition this autumn.”
Somalia is heading to parliamentary and presidential polls in October to rebuild a functioning government, a move which the AU peacekeeping mission said it will support and said will be a win against Islamist extremists in the country.