KALANDIA, West Bank — Israeli forces killed two Palestinians in a refugee camp here early Monday after raiding several houses and being set upon by stone-throwing Palestinians.

Witnesses and family members said the two were Ali Hassan Khalifeh, 26, a member of the Palestinian military intelligence force, and Moatassem Issa Adwan, 22, a student. Both were said to have been bystanders in the fighting, which occurred around 3 a.m. as residents were preparing to eat and pray in advance of the daylong fast on the first day of the holy month of Ramadan.

The Israeli Army said that its soldiers had gone into Kalandia for “routine arrests,” that a “mass riot” had broken out and that the soldiers responded with riot control tactics followed by live fire. It said five soldiers were slightly injured, but had no information on the Palestinian casualties. The army said it made three arrests.

Camp residents who gathered at midday at a mosque for the Palestinians’ funerals said the raid involved scores of Israeli troops. They said that people up early for Ramadan saw the troops and began throwing stones at them. Israeli reinforcements came in shooting, they said.