I also know that there was a large contingent of Saudi and Pakistani militants that made up those militias, as well as heavily funded mujaheddin that morphed in the power vacuum left into the Taliban. Uncool example, dude.
It's apt. Similarly, after the Revolution, armed militiamen were able to foment the Shays Rebellion, Whiskey Insurrection, and the Fries's Rebellion. And yet, despite these contemporary examples of armed militiamen rising up against the federal government, the right of the people to bear arms was still felt to be important enough to enshrine in the Bill of Rights.
Firearms can be used to oppose tyranny as well as to foment insurrection. The line between the two is thin. Your ally against tyranny today could be trying to foment insurrection against you tomorrow.
To wit: Daniel Shays fought at the battles of Bunker Hill, Lexington and Saratoga in the American Revolution, and was highly decorated. In 1783, he then led a rebellion against the Commonwealth of Massachusetts due to the treatment of veterans driven into debt due to their service. His rebellion was routed by... you guessed it... militia.
In 1794, the Whiskey Rebellion, led in part by James McFarlane, a Revolutionary War veteran in opposition to federal whiskey taxes. He was opposed and defeated by... again... militia, including one John Fries, another Revolutionary War veteran, who four years later led his own rebellion against a federal real estate tax and, ironically, the Alien and Sedition Acts.
Notwithstanding these semi-regular armed insurrections by militiamen using their own arms, the Second Amendment was enacted and nobody ever thought that these rebellions were sufficient cause to revoke them.
At the time, it should be noted, the United States had created a standing army... the Legion of the United States, which, during the War of 1812, morphed into the United States Army. So, in theory, the federal government was no longer relying on militia to defend itself. In fact, the Legion was created specifically because it became clear that local militia were incapable of protecting the frontier, and a professional army was necessary.