The convoy was traveling through northern Mogadishu when the bomb was detonated .