At least five people have been killed on the edge of the Somali capital after Islamist gunmen attacked two positions held by fighters loyal to a regional commander, militia sources said.