DES MOINES, Iowa — An Iowa man charged Thursday with fatally shooting two police officers in ambush-style attacks was under intense financial pressure and had been ordered to move out of his mother's basement hours before the slayings.

Scott Greene, 46, was arrested Thursday after detectives questioned him at the Des Moines police station.

Greene was secured with the handcuffs that had belonged to the patrolmen who were killed, Des Moines Sgt. Anthony Beminio, 38, and Urbandale Officer Justin Martin, 24, and was transported to the county jail.

Greene was charged with two counts of first-degree murder. If convicted, he would receive an automatic sentence of life in prison without parole.

Police said Thursday that a search dog recovered a .223-caliber rifle the day before in a wooded area that they believe Greene used to fire on the officers.

Greene had been hospitalized for treatment of a pre-existing medical condition following his surrender Wednesday morning. He left the hospital Thursday.

Court documents show that Greene, an unemployed father who lived in the Des Moines suburb of Urbandale, was increasingly desperate for money in recent weeks.

District Judge Carla Schemmel ruled Tuesday that Greene had committed elder abuse against his mother, Patricia Greene, by “physically hitting and financially exploiting” her. Schemmel ordered him to move out of his mother's home before Nov. 6 and to stay away from the home for a year.

Patricia Greene, 66, had applied for the restraining order Oct. 19, two days after she was arrested and charged with striking her son in the face during an altercation that he had recorded with his cellphone.

She said her son had subjected her to emotional and financial abuse.

A temporary protective order was issued Oct. 20.

Des Moines police spokesman Sgt. Paul Parizek said a motive for the shootings remains unclear.

Court records reveal Greene's mounting financial problems.

Last year, a credit union attempted to collect a $5,000 debt from Greene by garnishing wages from one of his former employers and two banks with which he had accounts. But none of them reported having funds. The debt grew beyond $10,000, and there's no indication it was ever paid.

An apartment complex also filed a $1,300 claim for delinquent lease payments that he hasn't paid.