You gun nuts never go far enough in that account.  After Peter cuts of the guy's ear Jesus says a very emphatic ENOUGH! Then goes on to tell him to put away the sword, as those who live by the sword die by the sword.   Then Jesus heals the man's ear.  And Jesus also said something g about being armed so he would be counted among the lawless.