Who is Scott Michael Greene, man suspected of ambushing, killing 2 Iowa police officers?

Bullet holes are seen on the side of a Des Moines police department squad car at the scene of a shooting, Wednesday, Nov. 2, 2016, in Des Moines, Iowa. Authorities apprehended a man Wednesday suspected in the early morning killings of two Des Moines area police officers who were shot to death while sitting in their patrol cars in what authorities described as separate ambush-style attacks. (AP Photo/Charlie Neibergall)

Credit: Charlie Neibergall

Credit: Charlie Neibergall

Bullet holes are seen on the side of a Des Moines police department squad car at the scene of a shooting, Wednesday, Nov. 2, 2016, in Des Moines, Iowa. Authorities apprehended a man Wednesday suspected in the early morning killings of two Des Moines area police officers who were shot to death while sitting in their patrol cars in what authorities described as separate ambush-style attacks. (AP Photo/Charlie Neibergall)

Authorities took Scott Michael Greene into custody on Wednesday morning, hours after investigators believe he ambushed a pair of police officers in Iowa and killed them as they sat in their patrol cars.

>> Read more trending stories

Police took the 46-year-old into custody in Dallas County after he surrendered to a Department of Natural Resources officer, according to The Des Moines Register. Police told the newspaper the arrest was peaceful.

Greene is accused of shooting Urbandale police Officer Justin Martin, 24, around 1 a.m. CT. Investigators believe that he then traveled 2 miles and shot Des Moines police Sgt. Anthony "Tony" Bemino, 38, before leaving.

Investigators have not identified a motive behind the shooting.

Here's what we know about Greene:

Urbandale police had a history with Greene.

"Most of the officers who are in the city have some understanding of Mr. Greene," Chief Ross McCarty said at a news conference Wednesday.

He said officers have previously warned Greene against trespassing and have been to his house.

Greene was in court Tuesday over a disagreement with his mother, McCarty said, although he was unsure of whether the appearance was related to a criminal or civil case.

Greene has a daughter who attends Urbandale High School.

Police warned Greene against trespassing at the school just weeks before Wednesday's shootings, McCarty confirmed.

The encounter appears to have been filmed by Greene and posted on YouTube under an account with his name. The video, shot on Oct. 14, was uploaded on Oct. 16 to YouTube with the title "Police Abuse, Civil Rights Violation at Urbandale High School 10/14/16."

McCarty said Greene was asked to leave the Urbandale High School football field after people near him during the national anthem complained that he was waving a Confederate flag in the face of nearby African-Americans.

In the YouTube video, Greene tells officers he wants to file a complaint against unidentified African-Americans who he accused of "smacking" him before police escorted him from the stadium.

In a YouTube comment posted in response to a person complaining about police being too lazy to investigate the purported assault, Greene wrote: "I was offended by the blacks sitting through our anthem. Thousands more whites fought and died for their freedom. However this is not about the Armed forces, they are cop haters."

Greene pleaded guilty to interference with official acts in April 2014, according to court records obtained by The Des Moines Register.

In the complaint, Urbandale Officer said Greene became "noncompliant, hostile (and) combative" when police tried to search him for weapons at an apartment complex in Urbandale. Police wanted to search Greene after noticing a pouch on his belt that looked like a holster, according to The Register.

Greene was accused of threatening to kill a man two days later and charged with first-degree harassment, a separate complaint obtained by the Register shows.

In the complaint, Greene was accused of calling a man at the same apartment complex the N-word and telling him "I will kill you, (expletive) kill you." He pleaded guilty to a lesser harassment charge in June 2014, according to the Register, and sentenced to a year of probation.

Police have not yet charged Greene, although he is in police custody and identified as the shooting suspect. Authorities continue to investigate.