People I've talked to that have done more research on the incident have said that she had an abscessed tooth at the time and the fill-in trainer hit her in that area, hence her aggressive response. She's the only elephant to ever be hanged as a form of euthanasia.
https://en.m.wikipedia.org/wiki/Mary_(elephant)
https://en.m.wikipedia.org/wiki/Mary_(elephant)