(CNN) - A police officer, a doctor and a pharmacy resident were killed after a Monday afternoon shooting at Chicago's Mercy Hospital, Mayor Rahm Emanuel said.
The shooting was a domestic incident, Chicago police Superintendent Eddie T. Johnson said. The gunman's first victim was a woman with whom he had had a relationship, Johnson said.
The gunman, Juan Lopez, 32, also died, police said. It is unclear whether he died from police gunfire or a self-inflicted gunshot wound, Johnson said.
Mercy Hospital named its employees killed in the shooting as Tamara O'Neal, 38, an emergency room physician, and pharmacy resident Dayna Less, 25, a recent graduate of Purdue University.
The hospital paid tribute to police and security staff, saying it was "deeply saddened by the tragedy."
"Every shooting in America is a tragedy, and it is especially senseless when a shooting occurs in the healing space of a hospital," it said in a statement.
Chicago police identified the deceased officer as Samuel Jimenez, a father of three. He joined the force in February 2017 and recently completed probationary training, becoming a full-fledged officer, Johnson said. A procession was held for him Monday night.
"Today, we mourn Chicago Police Officer Samuel Jimenez. His heroic actions saved countless lives. He ran toward danger. He ran toward those shots. He ran into fire. Selflessly," the department said on Twitter.
"What I would ask is that you keep all the victims of today's horrific incident in your thoughts and prayers," Johnson said.
How the shooting unfolded
Around 3:30 p.m. Monday, the gunman approached one of the female victims in the hospital parking lot, Johnson said. As they started arguing, a friend of the woman attempted to intervene.
The gunman lifted his shirt and revealed a handgun, prompting the friend to flee. Two 911 calls in rapid succession reported an assault and then gunshots, Johnson said.
When officers responded to the scene, the gunman opened fire on them before they could exit their vehicle. Officers followed him into the hospital and exchanged gunfire with him, Johnson said.
During the shootout, Jimenez was fatally wounded along with a hospital employee as she exited an elevator.
The officers "saved a lot of lives because we just don't know how much damage he was prepared to do," Johnson said.
'I don't even have words'
Police secured the hospital and patients are safe, the hospital said.
The shooting drew large numbers of law enforcement and emergency responders. Vehicles with flashing lights cordoned off the blocks around the medical center.
Witness Steven White told CNN he was in the emergency room when he saw the shooter firing at police.
"We heard some shots so we all ran to the emergency window; we see this guy out there, military style, shooting at the police -- pow, pow, pow," he said.
When White looked outside he said he saw a person lying on the ground by the main entrance. The shooter turned around and opened fire again before running inside that entrance.
"I don't even have words to say how I was feeling," White said. "It's sad, you can't even come to the hospital for treatment."
At least 15 medic units were sent to Mercy Hospital, Chicago Fire Department public information officer Larry Merritt said.
Democratic Sen. Dick Durbin of Illinois thanked law enforcement members for their response.
"My heart is with Mercy Hospital in Chicago tonight. I am praying for the victims, their families, and those who were injured during the shooting this afternoon. And I am extremely grateful to the Chicago Police Department who responded with bravery," Durbin said via Twitter on Monday.
The-CNN-Wire ™ & © 2019 Cable News Network, Inc., a Time Warner Company. All rights reserved.