Well there is your answer. The smith machine is known to destroy people when not used properly, and to use it properly requires you to squat differently than free weight squat.
Try using a rack and squatting that way, after resting your knees a little while, and see if it feels better. As long as you let your knees heal first, I bet it will feel a lot better.