I'm assuming you mean that brown thing that is bigger on one end then gets skinny. Was/is it alive? If so, did it creep like an inch worm? It looks to me like what we call a "mouse". It's a developmental stage of flies. That will crawl off into a place it deams as good and then it will get a dry crusty outside and then hatch into a fly.