First off, get/borrow a multimeter and check the voltage on the battery. The clicking noise is usually a symptom of low voltage on a battery. However, given that it started, then died before immediately before the no-start condition, my initial guess is that you have a failed alternator. This would not allow the battery to charge, and the vehicle would temporarily run on battery power until it got too low.
You most likely still have a good battery, so put it on a charger, or have them test it at autozone. If it takes a charge, then try starting the vehicle again with the good/recharged battery. You want to check the voltage on the battery both before and after you start the vehicle. If the voltage does not immediately increase after starting, your alternator is most likely the culprit.
Upon removal of the alternator, autozone can also bench test that part, to double check it's failure.
There could be other issues in play here, but that is the most likely IMO.