People in Gaza gathered at the Rafah border crossing Wednesday morning, waiting to enter Egypt after officials said a group of foreign nationals and dual citizens, along with injured Palestinians, may soon be able to leave. The crossing is expected to open Wednesday after weeks of negotiations with the U.S., Israeli, Egyptian governments and Hamas. Qatar mediated the deal, according to a person briefed on the agreement speaking on the condition of anonymity to discuss sensitive talks. Earlier, the Hamas border authority called on 400 foreign nationals seeking to flee to arrive at the Rafah crossing, and said Egypt agreed to take in 81 injured people. Previous negotiations for safe passage out of Gaza have fallen apart at the last minute. Israel claimed responsibility for a deadly attack on the Jabalya refugee camp in northern Gaza, with an Israeli military spokesman describing civilian deaths from the strikes as a “tragedy of war.” Hundreds were killed or injured, Palestinian health officials said.