Thanks for the suggestion. It does look very much like a soldier beetle, but the head and antennae are different. I think I've seen those hanging out on dill flowers. Based on the appearance of the eyes I've looked through charts of solitary bees/wasps and found some that are similar, but not exactly the same. And it has an odd-looking thorax. Totally at a loss.