Those are the pupa. This is the stage many insects go thru to transition to adulthood. The 4 stages of this type of insect are - egg, larva, pupa, and adult. Beetles, butterflies, bees, wasps, flies and others go through these stages.
Mantids, phasmids, assasin bugs and other go through 3...