Palestinian gunmen have attacked a West Bank settlement, killing four Israelis before being shot to death, and a car bomb exploded in the heart of Jerusalem’s pub district in what is feared may be the start of a new wave of attacks after a month of relative calm.