A police officer, who declined to be named, told Xinhua that the blast occurred at Weydow area outskirt of Mogadishu.
"We learnt that three soldiers and a civilian died in the blast. We believe that the enemies were behind the attack," he said.
Residents said that they heard huge blast at the area.
"We heard huge blast followed by gunfire, there were casualties but I can't give a figure," Mumin Ahmed, a resident, told Xinhua.
No one has claimed responsibility for the latest attack.
More about: #Mogadishu