Scott Michael Greene was arrested in Dallas County, Iowa around 9am Wednesday morning

Police have captured the suspect wanted for shooting dead two police officers in Des Moines, Iowa early Wednesday morning.

Officials say 46-year-old Scott Michael Greene surrendered to a state Department of Natural Resources officer in Dallas County around 9am. Dallas County neighbors Polk County, where the shootings happened.

Greene is said to have waved the officer down, presented him with his ID, and told him to call 911 because he was having a 'flare up' of an existing medical condition.

Greene was taken to the hospital for an undisclosed injury and has not officially been charged yet. Police plan to interview him when he is discharged.

The arrest comes eight hours after two police officers in Des Moines were found shot to death in their patrol cars. The officers have since been identified as Urbandale police officer Justin Martin, 24, and Des Moines police Sgt. Anthony 'Tony' Beminio, 39. Martin was single, while Beminio was married with kids.

Greene's identity was released around 8am, with the warning that he was considered 'armed and dangerous'.

The incidents Wednesday morning come just two weeks after Greene recorded a YouTube video of cops kicking him out of an Urbandale High School football game for waving a Confederate flag in front of black spectators.

According to public records, Greene has had several run-ins with the law including arrests for harassment, interfering with an official, assault causing bodily injury, criminal mischief and domestic assault. Records also show he filed for Chapter 7 bankruptcy in 2007.

Scroll down for video

Urbandale police officer Justin Martin, 24 (right), and Des Moines police Sgt Anthony Beminio, 39 (left), have been identified as the officers killed in the shootings

The first officer was shot dead in his squad car at 1:06am outside Urbandale High School. The first crime scene pictured above

The second shot officer was found inside this parked cop car at the intersection of Merle Hay Road and Sheridan Drive around 1:26am (pictured above)

Bullet holes are seen on the side of the first cop's car targeted in the attack

After the shootings, local police coupled up officers so that they would safer out on patrols. Above, a view from one of the shooting scenes early Wednesday morning

Both shootings happened in the Des Moines suburb of Urbandale, where the local police department has just 50 officers

Police say neither officer had an opportunity to defend themselves.

Urbandale police officer Justin Martin was shot dead in his patrol car outside Urbandale High School at approximately 1:06am. Greene shot 15 to 30 shots at the driver's side of Martin's vehicle.

'The puzzling thing about this is that (Officer Martin) didn’t have any idea or warning or fear that anything was wrong,' Urbandale Police Chief Ross McCarty said, adding that Martin appeared to be parked. 'We’re assuming (Greene) walked up on foot.'

Twenty minutes later, responding officers found Des Moines police Sgt. Tony Beminio dead in his car just two miles away. Martin, who had been on the force since 2014, was declared dead at the scene while Beminio, an 11-year veteran, died after being transported to Iowa Methodist Medical Center.

According to Facebook, Beminio appears to be a married father of three. He graduated from Simpson College in 2001, and before that was a standout football player and wrestler at Iowa City West High School. He was promoted to sergeant last year.

Martin's profile shows that he too attended Simpson College, graduating in 2015 - the same year he was hired by the force. The Rockwell City, Iowa native completed police academy in December 2015 and was released from his probationary period in October.

'We had high expectations for his future that were tragically cut short,' police said of the Eagle Scout.

Martin was unmarried and did not have children. However, he is survived by his two parents.

According to Facebook, 39-year-old Beminio (left) was a married father of three

Beminio had been promoted to sergeant last year after about 10 years on the police force

Martin (pictured second right) graduated from Simpson College in 2015 - the same year he joined the Urbandale Police force

'There's somebody out there shooting police officers. We hope to find him before somebody else gets hurt,' Sgt. Paul Parizek, spokesman for the Des Moines Police Department, said at a 5am press conference.

He added: 'On the surface, it doesn’t look like there was any interaction between these officers and whoever the coward is who shot them while they sat in their cars.'

Urbandale is a suburb of about 40,000 people in the Des Moines metro area with about 50 officers. Des Moines, a city of about 210,000, has about 375 sworn officers. Urbandale Police Sgt. Chad Underwood said he believes this is the first deadly Urbandale police shooting.

Urbandale officers are equipped with body cameras, but they don't run constantly and it's unclear whether there was video of the shootings.

This photo, reportedly taken by Greene at an Urbandale High School football game last month, shows him waving a Confederate flag in front of a group of African American spectators

Greene posted this statement in the comments section of the picture that shows him waving a flag in front of a group of black football spectators

Greene was later asked to leave by local police, because the flag violated the school's code

Des Moines Police said there is 'a clear and present danger' to its officers, following this morning's shootings. As a result, the department doubled its officers.

'We're always vigilant about our safety, but we've still got to go out there,' Parizek said.

Following the shootings, officers in SWAT gear were going door to door at the crime scenes, interviewing locals who may have witnessed the crime.

Later Wednesday, police were at the scene of a home connected to Greene, on 70th Street.

A neighbor told a Des Moines Register reporter that Greene 'called police last week about a local burglary' and 'seemed excited by helping law enforcement'.

Above, a field near where Greene flagged down a state Department of Natural Resources officer on Wednesday, after the shootings

Investigators were combing the field for evidence after Greene's arrest in the morning

Detectives gather on a roadside near whether Greene sought help Wednesday before being taken to the hospital

The neighbor also said that Greene put a Trump poster out on his lawn about two weeks ago.

Trump himself weighed in on the deadly shootings at a campaign stop in Miami on Wednesday.

'We send our thoughts and prayers to the families of the fallen...An attack on our police is an attack on all of us. Law enforcement is the line separating civilization from total chaos...It's a lack of respect for our nation, and it's a lack of respect for our leaders.

'To all the great men and women of law enforcement, we're with you, we support you, and we will stand by you. We will restore law, order and justice to America,' he said.

Former President Bill Clinton and vice presidential candidate Tim Kaine had a scheduled campaign stop in Iowa on Wednesday, which was been cancelled in the wake of the shootings.

Urbandale Police Officers gather outside the home of Scott Michael Greene, the suspected gunman, on Wednesdat

Law enforcement officials enter a home to investigate near the scene of a shooting on Wednesday

A neighbor told the Des Moines Register that Greene 'called police last week about a local burglary' and 'seemed excited by helping law enforcement'. Above, investigators near one of the scenes on Wednesday

Law enforcement agents in SWAT gear were patrolling the crime scene after the shootings

Law enforcement officers gather in front of a home near the scene of a shooting, Wednesday, November 2, 2016, in Urbandale, Iowa

A Des Moines police officer stands near the scene of a shooting, Wednesday, Nov. 2, 2016, in Des Moines, Iowa

Urbandale public schools have been cancelled for the day. The first officer was shot outside Urbandale High School (pictured above)

Above, a daytime view of Merle Hay Road and Sheridan Drive, where the second officer was shot

Sergeant Paul Parizek of Des Moines Police Department, pictured, said there was a 'clear and present danger' to fellow officers

Meanwhile, a YouTube video is shedding light on the suspect.

The video, allegedly recorded by Greene on October 14, shows police officers kicking him off Urbandale High School property for bringing a Confederate flag to a football game.

Greene goes on to claim that 'African American people' seated behind him at the game threw something at him and then stole his flag, and he wanted to press charges. He also claims he was assaulted by the officers.

'I think I’ve been assaulted by you,' Greene tells one of the cops. 'You grabbed me and shoved me around.'

The officers kicked him off the private property because the flag was in 'direct violation of school code'. They also said there wasn't much they could do about reporting an alleged assault since Greene couldn't identify the people who threw an object at him.

One female officer patiently explained that while it was his constitutional right to fly the flag, he was also causing a disturbance by bringing a racially charged symbol to a public place where others would be offended by it.

In a comment on the video, 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.'

Another video posted to the same account shows a picture of Greene holding up a Confederate flag and an American flag while standing in front of a group of African American people at what appears to be the same football game.

Donald Trump responded to the shootings Wednesday with a tweet, saying he was praying for the families of the officers

Police have yet to release the identities of the two officers shot in the incident

Police closed down the streets near the two crime scenes to conduct their investigation Wednesday morning

Greene has a long criminal history including an arrest in April 2014 for interference with official acts.

According to the criminal complaint, Greene resisted an attempt by officers to pat him down for weapons when they saw he was wearing a pouch on his belt that resembled a holster.

Greene was 'noncompliant, hostile, combative and made furtive movements toward his pockets' before the arrest, the arresting officer wrote. Greene pleaded guilty to the charge about two weeks later.

And just two days after that incident, Greene was accused of threatening to kill a man in the parking lot of the same apartment complex.

In that criminal complaint, Greene was said to have approached a man in the parking lot and shined a flashlight in his eyes. He then called the man the n-word and told him 'I will kill you, (expletive) kill you'.

Greene was initially charged with first-degree harassment, but took a plea deal - agreeing to plead guilty to a lesser charge in exchange for just a year's probation.

His probation officer noted in a discharge report in June 2015 that Greene underwent a mental health evaluation and 'reports to have compiled with the medication recommendations'.

Just last month, on October 17, Greene's mother was also arrested for allegedly assaulting him.

The complaint says Greene was wearing his deceased father's dog tags and that his mother, 66-year-old Patricia Greene, tried to tear them from around his neck. Greene grabbed his mother's hand and she hit and scratched his face.

Greene showed an officer cellphone video of the confrontation.

His mother was released on a $1,000 cash bond and a judge ordered that she have no contact with her son. She is due in court on the charge later this month.

The complaint doesn't say why Greene's daughter has a service dog.

Des Moines Police have doubled up its officers. Above, officers in Urbandale Wednesday morning

A police officer sits in his car at the scene of a shooting, Wednesday, November 2, 2016, in Urbandale, Iowa

Officers in SWAT gear were going door to door Wednesday morning, interviewing locals in an attempt to identify the suspects. Above, a police officer stands guard in the street at one of the shootings Wednesday morning

Local police have received an outpouring of support since the shootings this morning.

In one tender moment, captured by local news station KCCI, a local woman brings food and water to a police officer on duty.

The woman begans to cry as she tells the cop how she 'can't even imagine' what he is going through.

She goes on to say that the only way she could think of helping was brining the men something to eat.

'I want you guys to be hydrated and not to be hungry. And I want you to go home to your family, because I want my dad to come home to me and I want my friends to come home to me.

'I'm sorry and I'm here for you all. I don't know how else to help or what to do,' she says.

The officer returns her hug and says: 'Your prayers are always needed.'

Local officers have been receiving an outpouring of support, including this one who was gifted food and water by a local woman

As the two embraced, the woman told the officer that she wanted him to be able to go home to his family

The officer was clearly moved by the present he received from the concerned local woman

Public schools in Urbandale were cancelled for Wednesday out of safety for its students.

The school district released a statement reading: 'All Urbandale Community School District schools, departments, offices are cancelled/closed today, Wednesday, November 2, 2016. There will be no Adventuretime and no school per the recommendations of Urbandale and Des Moines law enforcement. Staff are not to report to buildings.'

Iowa Gov. Terry Branstad also issued a statement on the shootings this morning.

'An attack on public safety officers is an attack on the public safety of all Iowans. We call on Iowans to support our law enforcement officials in bringing this suspect to justice.

'Our thoughts and prayers go out to the families of the police officers who were tragically killed in the line of duty as well as the officers who continue to put themselves in harm’s way,' part of the statement read.

Iowa Congressman Steve King weighed in as well.

'Our hearts and prayers are with the families of our two Des Moines metro police officers who were tragically murdered early this morning,' a statement from King reads. 'This is a sickening tragedy experienced by our state and Nation today, and this is a very important time for us to stand together in support of our men and women in Blue. Please join me in continued prayer for the affected families and for all of our law enforcement officers. They have lost two of their own and we have lost two of our heroes.'

King has ordered all of his district offices to lower their flags to half-staff in honor of the two officers.

According to Officer Down Memorial Page, 111 police officers have died in the line of duty this year, including three from Iowa.

Forty-eight of these officers were killed by non-accidental gunfire.

Attorney General Loretta Lynch has strongly condemned the killings.

Lynch said the shootings early Wednesday are the latest in a 'series of senseless attacks' and that 'violence has no place in the United States of America'.

She says violence is 'especially intolerable' when it's directed at law enforcement officers who risk their lives to protect the public.

The shootings follow the fatal ambushes this summer of officers in Dallas and Baton Rouge, Louisiana.

Lynch says the Justice Department is determined to give officers the tools they need to do their jobs safely and effectively.

The attacks on police this summer in Dallas and Baton Rouge came in the wake of several high-profile police shootings of black men, fueling a national debate about police use of force, especially against minorities - a frequent topic in the nation's presidential race.