My thought was cicada pupa, but the more I'm looking, the more it seems they skip that stage, so yeah, I'd have to say moth. Try looking at your states DEC (or equivalent) website to see what the various lifestages of your regions indigenous moths are.