Two Layton police officers who shot an armed man Sunday have been cleared from any criminal wrongdoing after an investigation ruled the shooting was justified.

Officers Ted Donoviel and Allen Swanson shot Scott Goodfellow, 28, Layton, three times after he refused to drop a .45-caliber revolver in front of his estranged wife's house. Goodfellow was treated and released from an area hospital and then booked that night into the Davis County Jail.Donoviel and Swanson were placed on administrative leave while the Davis County Sheriff's Office and the Davis County Attorney's Office conducted a critical incident investigation.

Police say the shooting occurred after Cheree Goodfellow contacted police, saying her estranged husband, Scott Goodfellow, whom she had a protective order against, called and was on his way over to her house.

Donoviel and Swanson went to the house, and when Scott Goodfellow arrived, he pointed a gun at the officers. The officers ordered him to drop the weapon, and when he refused, they fired seven shots at him, striking him in the left shoulder, the right side of the abdomen and the right hip. Scott Goodfellow never fired his gun.

A press release issued by the Davis County Attorney's Office Wednesday afternoon states the "investigation supports the conclusion that the officers used deadly force only when confronted with deadly force which endangered their safety."