Four Palestinians and two Israeli soldiers have been shot dead during a confrontation near a village in the occupied West Bank.