Edit: There are three possibilities.
1. Opposing Pokemon used Gastro Acid and then Pin Missile.
2. Opponent used Simple Beam and then Pin Missile.
3. Opponent used Odor Sleuth and then Pin Missile.
One question: Was your opponent a Joltik, Galvantula, Zigzagoon, or a Linoone?