I found this small beetle on some grasses in a roadside ditch in Southwestern Ontario in July.
I have done numerous searches online, but cannot find an image. Hopefully someone can identify it for me, as it is rather attractive in appearance.
Your critter is a firefly or lightening bug. We know it so well when they are flashing at night but do not always see their colorful bodies.
This genus of beetles are found in most of North America.
They have a chemical in them that makes them taste bad to spiders and birds. Females of this genus (Photuris) are known to lure in males in order to consume them and obtain this defensive compound.
Males emit a species specific flash pattern which is responded to by females of the same species that are sitting in vegetation. Some species exist, which can be separated only by subtle differences in their flash patterns. They are not easy to ID to species anyway.
Larvae of these beetles feed on garden pests including snails.