It was probably in trying to get in the hive before it was killed. I often find dead bumblebees inside my hives.