TEL AVIV — Israel suspended thousands of travel permits to Israel for Palestinians, sent two battalions of soldiers to the West Bank and blockaded a town there on Thursday, a day after gunmen killed four people in a crowded restaurant district in Tel Aviv.

The assault on a bar serving chocolate in the Sarona shopping complex on Wednesday, which came just as a nine-month wave of stabbing and shooting attacks had appeared to ebb, was particularly brazen, as it was very close to Israel’s military headquarters.