ST. LOUIS (KSDK) - Work and personal time intertwined Friday for a St. Louis City police officer, who shot a man breaking into a neighbor's house.

Police says the off-duty officer heard the commotion, went to check it out and saw a man inside one of his neighbor's house on the 5200 block of Lexington Avenue in St. Louis.

Eventually, the two met up in the backyard when the officer saw the man climbing out of a window, according to a police spokesperson.

That's when the officer says the burglar tried to take his gun. The two fought over it, the officer fired several shots and hit the suspect once in the hip.

A neighbor says she was just sitting down to eat something when she heard three gun shots.

"I went to my bathroom window and I looked out and I heard voices," said Pam Wright. "Apparently the man was trying to get away and the homeowner or whoever it was that was doing the shooting was letting him know that he had come to the wrong home."

The 50-year-old suspect was treated for non-life threatening injuries. He has been released and is in police custody.

The officer, who's been on the force for more than 24 years, was not hurt.

The officer has been placed on administrative leave, per department policy.