Contacts can get stuck in the eye at any time, usually due to eye dryness. The easiest way to handle a stuck contact is to rinse the eye with contact lens solution. Then, close the eye and massage the upper eyelid until the lens moves.
If this rinsing process does not work the first time, it can be repeated a few times. Make sure to blink a few times after the rinse to aid the contact in moving. If this does not work after a few tries, consider contacting a local eye doctor to arrange to have the contact removed.