Israel’s military demolished buildings and set up roadblocks in Hebron, the West Bank’s largest city, a day after Palestinian gunmen killed two Israeli soldiers.