JAFFA, Israel — The armed wing of the Palestinian Islamist group Hamas showed photographs on Friday of four Israelis, two of whom it said were captives being held in Gaza. Two others were Israeli soldiers who were killed during the 2014 conflict in Gaza, Hadar Goldin and Oron Shaul.

The images of Mr. Goldin and Mr. Shaul were included in an announcement by the Qassam Brigades, Hamas’ military wing, on Al Aqsa, a Hamas-run satellite channel. The identities of the other two people pictured were not immediately clear.

The announcement was the first time the group had released photographs of the people it said it had been holding captive. The spokesman for the Qassam Brigades, who goes by his nom de guerre, Abu Obeida, referred to all four of them as Israeli soldiers.

Hamas is also holding two Israeli civilians, including Avraham Mengistu, an Israeli of Ethiopian descent. Mr. Mengistu, who is believed to be in his mid to late 20s, crossed an Israeli-constructed fence that surrounds much of Gaza on Sept. 7, 2014. His family has said that he has psychiatric problems. Hamas is also holding an Arab citizen of Israel who has not been identified.