Islamist fighters set off a bomb and then stormed a government building in Somalia's capital, killing at least six civilians, the ministry of information said.