RKBA was enshrined in the constitution as a safeguard against exactly this kind of thing. However, let's be realistic; if this were to actually happen, it would succeed, because civilian firepower is no match for the firepower that the U.S. military has at its disposal. On the other hand, if 9/11 did not result in martial law being enacted, I can't imagine what would.