Hamas agreed Friday to release Edan Alexander, the last living American hostage in captivity in the Gaza Strip.