The attack took place on Wednesday night while security forces were conducting an investigation, according to the sources.
The victims are said to be pedestrians, as medical officials told Puntland Mirror.
After the attack, the armed men escaped from the scene.
No one has claimed the responsibility for the attack, but suspicion fell on Al-Shabab or ISIS militants.