The Pentagon has transferred two Malaysian detainees at the Guantanamo Bay U.S. military prison to their home country.