Looks like a loose connection caused arcing and melted the insulation on the wire.