That may have been a Honeybee. Honeybees are the only insect I know of that leaves a stinger.
Problem is I think I squeezed it between fingers, so not only stinger was there but some part of body too 🤣