"It was reported that he was heavily armed," said Sgt. Brian Jensen, public information officer for the sheriff's office. "They got her out of there safely."

Macalevy was awaiting trial in February for charges of fourth-degree assault, domestic violence and two other charges of harassment, which he was arrested for on July 27.

On Aug. 1, his long-time friend, Jacob Sanders, who worked with Macalevy in the heating and cooling business, posted the $4,000 to release him from Clackamas County Jail. Macalevy was released under the condition that he could not contact his ex-wife.

"It was all very out of character," Sanders told The Post. "I've known him ever since I was a kid."

Macalevy had left the residence on Southeast Ten Eyck Road just outside Sandy by the time deputies arrived. Deputies later saw his vehicle and attempted to make a traffic stop.

Macalevy fled and led deputies in a pursuit, which ended on Southeast 312th Avenue and Southeast Church Road near Highway 212, where he got out of his car and exchanged gunfire with deputies. Several sheriff's cars were hit by bullets. No deputies were injured.

Macalevy was found dead behind a barn in the area a short time later.

Highway 26 near the incident was closed for several hours and Sandy residents were alerted to stay inside their homes as the event unfolded. The "all clear" was sent out at about 7:30 a.m.

Jensen declined to name any of the officers involved in the shooting.

The Post will update this story online and in print as more information as more information becomes available.