I experienced knee pain in the beginning too. In my case I was incorrectly using a slight twisting motion in the knees in the attempt to achieve that beautiful flowing figure eight looking hip rotation I've seen Latino people use. In my case, my orthopedic DR found a slightly torn minscus, so make sure you are not using incorrect knee technique.
I also noticed increased pain while practicing turns, so even when I did return to practice, I limited or avoided turns too .I certainly didn't want damaged knees preventing me from dancing (which is my passion) or causing serious damage.
I stopped dancing for a while and took it easy until the pain went away. Then I began to practice just a little each day, stopping as soon as I felt even an inkling of pain. In other words I gradually built up my strength. A physical therapist friend also gave me some exercises to help build knee strength. Interestingly, I noticed that when I correctly used the inside of my foot (without twisting the knee) there was LESS stress on my knees than when my foot was placed using the middle of my foot. I hope I explined it well. I don't know the correct terminology.
I'm now able to dance without resulting knee pain. I'm told I have very nice Latin motion for a beginner.
Surely the experienced dancers here will have good advice, but perhaps my experience will be of some help too.