The Ugandan military helicopter crashed at Mogadishu's airport as it was on its way to an African Union peacekeeping mission.