You could have a starter going out, worn relay. COULD be caused by an aftermarket security system, just depends on how it was installed and what wire got cut (if any). How loud is the click (just the solenoid moving) or a great whacking thud? From you description I'm suspecting the starter is the most likely culprit.