Earlier Saturday , four people were killed when a bomb exploded nearly 400 meters from the U.N. compound in southern Mogadishu .