The 1988 charter is filled with language regarding the resistance to the tyranny of the sovereign. You also quoted the Hadith again.
The second amendment is enshrining the right to violent resistance against a tyrannical sovereign.
The point you miss or purposefully dismiss is that the government of Israel, in the perspective of a Palestinian, prior to the formation of Hamas, has infringed upon their basic human rights. Necessitating the formation of armed civil militias to defend the Palestinian people. Hamas is a result of the violence and oppression of the Zionist ideology which empowers an Israeli sovereignty over them in Palestine.
The Palestinians today are the Americans of 1776. Fighting against the tyranny of the sovereign to obtain their rights.