JERUSALEM—Two Israeli citizens, an Ethiopian immigrant and a Bedouin, are being held prisoner by Hamas after separately crossing the border into Gaza months ago on their own volition, Israeli officials said Thursday after a gag order was lifted by the courts.