Palestinians attacks of all sorts on Israel are caused by the conflict between the Palestinians and the Israelis over the land that is now called Israel, the West Bank, and the Gaza Strip. Although there are variations of opinion, the general conflict is that both sides want more (or all) of the land for themselves.
In 1948, the State of Israel was created. The Arabs living there either fled on their own as this happened or were pushed out by the Israelis. They became stateless people who wanted to return to the places where they had lived. This helped lead to wars between Israel and Arab countries. The issue of how much land the Palestinians should have has been an issue ever since. This issue became even more of a problem after 1967 when Israel took control of the West Bank and Gaza.
Today, all sides are supposedly committed to a peace in which there will be a Palestinian state made up of the West Bank and Gaza. However, this has not yet happened for a number of reasons. There are extremists on both sides who are unwilling to compromise. Therefore, the violence continues.
Such problems will not be resolved untill the end of days!