Officials confirmed that Capt. Robert David Melton was pronounced dead at University of Kansas Hospital at 2:55 p.m. local time. 
"There's a lot of pain and brokenness in our community and our nation right now, and we just want to ask everyone to be prayerful and thoughtful right now," Mayor Mark Holland of the Unified Government of Wyandotte County said.     Chief Terry Zeigler tweeted news of the shooting just after 2 p.m.
According to a police statement, officers were originally called at around 1:35 p.m. after a 911 caller reported that at least three people were shooting at him from a vehicle. The suspects fled when officers arrived, and one of them was arrested at the scene.
About a half-hour after the initial call, Melton saw people who matched the suspects' descriptions about 20 blocks from the original scene and pulled up to them, police spokesman Tom Tomasic said. Before he could get out of his car, he was shot multiple times.     The Kansas City Star reported that police swarmed the area where the shooting took place, some of them holding rifles. Several officers took cover behind cars. 
Melton's car was in the middle of the street, police spokesman Cameron Morgan said.     "There's glass and blood all around it," Morgan said.
A second suspect was taken into custody later and police were looking for at least one more person.     Tuesday marked the second time this year that a Kansas City, Kan., police officer had been shot in the line of duty. Detective Brad Lancaster, 39, was shot and killed near Kansas Speedway during a violent crime spree on May 9.
The Associated Press contributed to this report.