diode in usb cable

So what was the setup that caused the damage, what was powering what?