Sadly they certainly helped. And very likely Isreali agents encouraged and supported them to do it. There are certainly power hungry people in hamas who saw this as an opportunity to increase their power at the expense of their people. Just like the Israeli politicians are openly doing now. And American politicians... and... These people pit two sides against each other for thier own personal gain and to stop the people from seeing the real enemy. Been like this for centuries...
What you are saying is not true. It's not likely at all that they were encouraged by Israeli agents. In Israel/Palestine there is no "real enemy" the real enemy is the other side full stop. It's not like in the USA or the rest of the world where you could make an argument based on class warfare. This is a feud going back centuries, if the entire social system and modern world collapsed, Muslims Christians and Jews would still be fighting over Jerusalem and Palestine