Witnesses say mortar shells have rained down on homes and a small market in Somalia's capital, killing 12 people and wounding 20.