OMAHA, Neb. — Investigators say a man who accidentally shot an off-duty Omaha police officer was cleaning a gun when the officer startled him.

The Douglas County Sheriff’s Office said in a news release Tuesday that the 70-year-old man was in his home cleaning the exterior of the handgun when he unexpectedly encountered 38-year-old Ben Weidner at his door. Investigators say the man was startled and reacted by squeezing the handgun and trigger. A shot was fired and struck Weidner in the abdomen.

Officials say the homeowner believed the gun was unloaded at the time he was cleaning it.

Investigators say the man and Weidner know each other and are on good terms. The shooting has been determined to be accidental, and no criminal charges are expected.

Weidner is expected to recover.