Somali gunmen who hijacked a ship carrying food aid for tsunami victims have let it dock near the capital , Mogadishu , two months after the vessel 's capture .