One of the two had been evacuated in serious condition and later succumbed to his wounds, medical sources said.
A third Palestinian who was shot in the leg was in moderate condition.
The Israeli army said soldiers shot toward "attackers" after "Palestinian gunmen opened fire at the forces and assailants hurled explosive devices at the forces" operating in the camp.
An Israeli army spokeswoman said none of their forces were wounded in the incident.
A wave of unrest that broke out in October 2015 has claimed the lives of 277 Palestinians, 42 Israelis, two Americans, two Jordanians, an Eritrean, a Sudanese and a Briton, according to an AFP toll.
Others were shot dead in protests and clashes, while some were killed in Israeli air strikes on the Gaza Strip.
The violence has greatly subsided in recent months.
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections. Election results will be out on May 23.