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

In your picture, the wires are laying on the metal intake. Direct short.

That makes sense

In a rush trying to get things done in a engineer but damn when you move to fast you make mistakes