JERUSALEM — Five people were killed on Thursday in two stabbing and shooting attacks carried out by Palestinian assailants in Tel Aviv and the West Bank, according to the Israeli authorities, in a renewed burst of deadly violence that came after a few days of relative calm.

The fatalities included three Israelis, an 18-year-old American yeshiva student and a Palestinian passer-by.

In the first attack, a Palestinian from the West Bank stabbed Israelis at the entrance of a store that served as an informal synagogue in Tel Aviv, killing two Israeli men and wounding a third. Witnesses said the attacker had then tried to force his way into the prayer room, but worshipers blocked the door.

Soon after, in the Etzion settlement bloc in the West Bank, a Palestinian man opened fire with a submachine gun from a car as he passed vehicles stopped in traffic. He then crashed his car into another vehicle, according to witnesses and police reports. Three people were killed and several others were injured.