Hamas , which seized control of Gaza three months ago , has demanded the release of hundreds of Palestinian prisoners in exchange for the Israeli soldier .