JERUSALEM — The Israeli military said it would immediately investigate reports that soldiers killed a 13-year-old Palestinian on Thursday night during a confrontation in a village near the West Bank city of Ramallah.

The boy, Bahaa Sameer Mousa Bader, was shot once in the chest and died 20 minutes after arriving at the hospital, said Dr. Sameer Saliba of the Palestine Medical Complex in Ramallah.

An Israeli military spokeswoman said the soldiers had entered Beit Liqya, a village of 8,000 near the barrier that separates most of the West Bank from Israel, to stop people from hurling rocks at the barrier. The spokeswoman, speaking on the condition of anonymity under military protocol, said the troops had responded with live ammunition when residents threw firebombs at them as they were leaving the area.

Ehab Bessaiso, a spokesman for the Palestinian Authority, condemned the killing “with all means,” saying in an interview that “the accumulation of incidents like this is undermining all efforts towards achieving a political solution, and in fact is contributing to instability in the region.”