Up to 50 Israelis who were being held hostage by Hamas have been freed, according to an Israel Defense Forces spokesperson.