The United States military announced on Thursday that it had repatriated an Algerian detainee held for more than a decade in the Guantanamo Bay, Cuba, prison complex.