Self defense is not retaliation...Jesus even told His disciples that if they did not have a sword to go buy one. A sword is not for stabbing pickles out of a jar.
I agree with response #15--which I believe was directed to your response. However, consider the full story in Scripture, rather than your one verse.
Yes, for some reason (assumably a teaching moment), Jesus told them to go and buy swords.
POINT #1: The 11 remaining apostles bought 2, then Jesus said "it is enough". Right there, that makes no sense.
POINT #2: Then, Peter used your logic. I'm sure he was thinking, Jesus said I would deny Him when the going got rough. I said I wouldn't and I'll show Him that I'm courageous enough to stand with Him, even if nobody does. So, Peter takes one of the swords to begin defending Jesus against the mob coming against Him. Pretty brave, huh? But, what happens next?
"Then Jesus said to him, "Put up your sword into its place: for all those that take the sword shall perish with the sword. Do you think that I cannot now pray to My Father, and He shall presently give me more than 12 legions of angels? But, how then shall the Scriptures be fulfilled, that thus it must be?" (Matt 26:52-54). Peter had to be in shock. This had to feel for him like the "You are the rock I will build my church on" to "Get behind me, satan!" moment. I'm sure he was about as confused as one could be. He was told to buy a sword. He did. Then, he did the natural thing and used it, ONLY TO GET CHASTISED for doing so. I have always considered the "denying" as the moment where satan was sifting Peter like wheat. But, that sifting may have started here with the temptation to use the sword.
Later, we see how James (John's brother) is martyred. When King Herod sees how happy he makes the jews doing that, he imprisons Peter with the same goal. Yet, an angel is sent by God, either in response to the prayer of the saints or just because God was establishing that He can stop anything He wants, because He is sovereign. God could have done the same for James. He didn't. Why is James allowed to be killed and not Peter?
Today, every visible church in the US makes it clear when they meet and where they meet. Most don't have security. It wouldn't be hard for a shooter to target most of them. So, why do some and not others get attacked? In contrast, many churches in other countries don't make it clear when they meet or where they meet and yet at some point, someone goes in and attacks. Why?
I guess it boils down to whether or not you believe in a divine plan or chance, accidents, and coincidences. Maybe God cares more about how we respond to what happens to us than preservation of the easy life here on earth.