Hamas has handed to the Red Cross the bodies of four Israelis who were held hostage in Gaza, an Israeli security official said.