You obviously have no idea what the term “Hamas” even means.
Most of the funding (85%) goes into the social services wing which is quite separate from the military wing and the religious wing.
And why shouldn’t the Palestinians strike back against the settler colonialist Zionists who have been murdering, torturing and oppressing them since the foundation of Israel in 1948?