There has been no claim of responsibility for the bombings. But an al-Shabaab commander in Mogadishu praised the attacks. He admitted he did not know whether they were the work of his group, which is fighting to overthrow the Somali government.