What causes the shooting pains down the left arm associated with a heart attack?

Don't worry; I'm not having a heart attack, although a coworker had a scare the other day. It made me wonder how that usually works. In other words, how does a heart attack cause shooting pain down the left arm?