Police in the US state of Iowa say they have arrested the suspect in the “ambush style” killing of two police officers.
He has been named as Scott Greene, a 46-year-old man from Urbandale, a suburb of Des Moines.
The first officer was found shot in Urbandale at 01:06 local time (06:06 GMT) on Wednesday. The second was found 20 minutes later several blocks away.
Both were sitting in their patrol cars when they were attacked.
The fallen policemen have been identified as Urbandale officer Justin Martin and Des Moines Sgt Anthony Beminio.
Speaking at a news conference, Sergeant Paul Parizek of Des Moines Police said: “What we can tell by looking at the scene is that it doesn’t appear that either officer had an opportunity to interact with the suspect. It doesn’t look like there was an exchange of conversation.
“There definitely wasn’t an opportunity for these officers to defend themselves or respond to the attack. Both officers were seated in their cars and were shot while they were sitting.”
A mobile phone video posted under Mr Greene’s name in October shows a man complaining to police that a group of black people had hit him and taken from him a Confederate flag he was holding during a high school sports event.
The Confederate flag is widely seen as a symbol of slavery. It was also heavily associated with the man accused of killing nine black churchgoers in South Carolina last year.
Why Confederate flag is so potent in the US
How many US police die each year?
“I was peacefully protesting,” the man in the video says.
“You have to understand that in the social climate that we’re in, when you fly a Confederate flag in front of a group of African-Americans, that’s going to cause a disturbance,” a police officer replies.
Another video appears to show a photo of Mr Greene holding the Confederate flag in front of several black people.
Police have confirmed that Mr Greene was involved in an incident at the school involving the waving of a Confederate flag in front of black people.