flat tire and shock absorber?

so i get a flat tire today, pull over and swap in the spare... thirty minutes later the spare goes out?! where i was driving there weren't any potholes or bumps. and then i noticed part of the shock absorber (i'm guessing) broke off...
attachment.php
 

Attachments

  • sa.JPG
    sa.JPG
    69 KB · Views: 103
  • Sponsors (?)


the spare was perfectly fine and then i here a loud crack, see that fall out from under the car, and the tire went out. it can't just be a coincidence, can it?

how much would it be to replace the end link? would i be able to do it myself? and i already know i can't get on from autozone or napa :/
 
thanks for all the help guys! i got a "sway bar repair kit" which is a pair of end links from napa this morning. only problem was it's a universal kit and the bolts are 1" shorter than the stock one i pulled out that was still good and for some reason it's impossible to find a longer bolt out here..