Border police cited a lack of Israeli exit stamps on passengers' passports for the ordeal. The Palestinians were reportedly fleeing the war in Gaza.