Hello,
Sudden click followed with knee pain on the same day would be serious injury.
In your case, Pain developed after couple of days. It must be a simple strain.. Nothing to worry.
It happens for the beginner exerciser. Remember, never blame an exercise.
Have you gone through a preliminary "Global Musculo Skeletal Assessment" before you start you training program? This will help in designing a individual specific exercise program.
What types of knee exercises you did?
Next Steps
Hire a "Certified Personal Trainer" in the beginning to learn the right techniques of doing Squats, Lunges, Dead lift (like swimming)
Health Tips
Consult a Sports Physiotherapist.
Apply Ice - 15 mins x Twice a day.