Two Palestinian attackers opened fire at a restaurant and gas station near an Israeli settlement in the West Bank on Tuesday, killing four Israelis and wounding several other people before they were shot dead, authorities said, as violence roiled the occupied territory the day after a deadly Israeli military raid.