Police said the man lowered himself into the underground waste paper container when he realized he had accidentally thrown away his lottery ticket and was heard shouting for help when he was unable to climb back out.
Police and firefighters arrived and were able to rescue man, who was not injured.
The man was not able to find his lottery ticket, police said.
They said it was not yet known whether the ticket was a winner.
Putin thinks Obama would save him if he were drowning
Justin Bieber crashes Drake Bell's album release party