This is what I believe to be a paper wasp. It’s business is not with the thistle flower, but with its stalks. I tried to find out what it does there, but couldn’t.