(CNN) -- This time it was the intruder who called 911.

A man who broke into a house in Portland, Oregon, called police -- afraid the homeowner may have a gun.

The suspect, Timothy James Chapek, was in the bathroom taking a shower when the homeowner returned to the house Monday night, Portland police said in a statement.

Accompanied by two German shepherds, the homeowner asked Chapek what he was doing in the house.

Chapek locked himself in the bathroom and made an emergency call, police said. He said he had broken into the house, the owner had come home, and that he was concerned the owner might have a gun.

The homeowner also called the police to report that he had found a man in the house.

Police with dogs took Chapek, 24, into custody "without incident," they said. He was booked for criminal trespass.

They did not say if the homeowner did in fact have a gun.