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

You let the magic smoke out of the ballast resistor...Its that same magic smoke that make the car start and keep running