FAIRFIELD — Police used a dog to sniff out a Bridgeport man hiding under a van after he was seen attempting to break in to Luigi’s Restaurant on the Post Road early Saturday.

Juan Carlos Rax, 28, was charged with third-degree burglary after police said he broke a window at Luigi’s and removed a cash register from Castle On Post, a nearby pub, where another window was broken.

Police responded to a burglary alarm at Luigi’s at 2:53 a.m., according to the Fairfield Police Department. An officer saw a man in a striped shirt run from the back of the building, and jump over a fence into an adjacent parking lot, police said.

Police setup a perimeter and used a K9 unit to track Rax, who was apprehended hiding underneath a work van on Longview Avenue, the department said on its Facebook page.

Authorities also found a cash register taken from Castle On Post hidden behind Luigi’s. The owner of the Italian restaurant, a well-known pizza shop, determined Rax was not able to enter the building after a walkthrough with police, the department said.

He was also caught on surveillance cameras walking toward the side of Luigi’s with the broken window, police said.

Rax was also charged with third-degree criminal attempt to commit burglary and interfering with an officer. He is being held on $50,000 bond, and is scheduled to appear in Bridgeport Superior Court on Oct. 23.