In Darwin's telling, Renous left his caterpillars in the care of a girl "that they might turn into butterflies", which isn't quite the same thing.
It may even be in the order of thousands of years even though we don't have written accounts of it, given that's how we have practiced apiculture and had the opportunity to closely observe the phenomenon. And apiculture has been widely practiced by monasteries, so churchmen should not have been entirely unfamiliar with the concept.
1. https://archive.org/details/deanimalibusinse00aldr/page/280
2. Coincidentally Aldrovandi was also accused of heresy, but for anti-trinitarianism, not for describing metamorphosis: https://en.wikipedia.org/wiki/Ulisse_Aldrovandi#Heresy