Does anybody know what this is and why it started smoking???

Your ballast resistor is fried.

Xs2.