Starter question

Not a Can Am but I figured you guys were the best to ask. I purchased a Yamaha Badger 80 and when I went to start it a heard a pop then saw smoke rolling out of the electrical connection on the starter. Below are a couple picks of the starter. My question is, is something like this a starter issue or can something else cause the starter to smoke? I don’t want to put another starter in just to let the smoke out of it to.
Starter was so hot I had to let it cool 1/2 hour before I could handle it to take it apart, looks like there is a lot of grease and grime in the starter as well.