As a first step, try bending a coat hanger into a hook at the end. Push that in, at the same time turning it. Slowly pull it out, still turning slowly. If you get lucky, it might come out.
There is a special snake called "Closet Auger" you can buy, but for a pill bottle I doubt it will be effective.
Jim