JERUSALEM — A confrontation between a group of Jewish settlers and Palestinian villagers in the West Bank on Tuesday ended when Palestinian officials handed the settlers, who had been surrounded by other Palestinians, over to Israeli forces.

The episode shined an unusual spotlight on the potentially explosive tensions in the area even as Israeli-Palestinian peace talks were underway.

Scenes captured on video showed a group of more than a dozen male settlers, including minors, who had apparently been corralled by angry Palestinians in an unfinished building on the edge of the village of Jalud, near Nablus in the northern West Bank. Some of the settlers had bloodied faces.

The settlers said they had been hiking in the area. But Ghassan Daghlas, a Palestinian official who monitors settlement activities in the northern West Bank, said they had come to uproot olive trees and clashed with Palestinians who confronted them in the fields among the villages of Qaryut, Jalud and Qusra.