Well it could be quite possible that the aerosol did kill it.
I have and never will spray any thing in my bedroom or around any of my pets. Dogs and cats included. I though it was just common knowledge that you shouldn't use any kind of aerosol or spray of any kind near any pets or animals. But now a days it seems common knowledge is lacking everywhere in the world.