Smoke from the motor shield

The motor shield has two power inputs. The first is for the logic circuits and must be 5V. The second is the power for the motor and can be higher. But if you connect both to 12V you will put 12V on the logic pins of both the shield and the Arduino pin and yes this will destroy both.