A man was rescued by Corpus Christi police after being stuck in an ATM on Wednesday afternoon.

The man was a contractor who was working on the machine when he accidentally locked himself inside, said Corpus Christi police officer Gena Pena.

Police arrived to the 400 block of North Mesquite Street about 2:05 p.m. after a passerby saw a note the man slipped in the receipt slot asking for someone to help him. The note also said he didn't have a cellphone with him. Police said some people thought it was a joke.

Pena said no one could hear the contractor in the ATM and said several officers had to kick the door in to rescue him.

It is unknown how long the man was in the ATM, Pena said, but officers left the scene about 2:30 p.m.