Vietnam was supplied by the Chinese, Afghans by the US and Hamas (this is me shooting in the dark, as I don't actually know) probably by any of the anti-Israel countries surrounding Israel.
Certainly, but such equipment that does get through, while naturally helping the cause of the insurgents and making life a bit more miserable for the occupying forces, does in most cases little to change the overall balance of power in a country, or causes a significant change in overall strategies. It was not their losses in men and materiel that caused the soviets to pull out of Afghanistan, nor the reason for the US draw-down in Iraq where the most effective weapon in the insurgents' arsenal is not some high-tech anti-aircraft missile supplied by an unfriendly government, but rather an old artillery shell on the roadside detonated by a cell phone. Few regular militaries have lost to insurgents because they were defeated in the field. I believe the old adage in these things is that while the military needs to win in order to prevail, the only thing the insurgent has to do is to not lose. In most cases, if the insurgent can just keep at it long enough, the military will pack their bags and go home eventually.
Vietnam may be a slightly different proposition, though, as for most of the time there was the regular PAVN forces to deal with, the VC being something of a fifth column.
But there are some really good examples of that during WW2, like with the Polish Resistance. Don't get me wrong, they were, for the most part, slaughtered. But they did make a difference.
I might offer the Yugoslav example from WWII, where Tito's partisans actually did kick the germans out through military action. Though of course at that point in time Germany was almost down for the count everywhere, and such reinforcements as would have been needed were simply not available for deployment to Yugoslavia.