A five-hour hunt for the gunman who shot two Dallas police officers and a Home Depot employee Tuesday ended with a high-speed chase through the city.

Authorities arrested Armando Luis Juarez, 29, who faces multiple charges of aggravated assault on a police officer in the shootings at the Lake Highlands store.

Dallas police announced early Wednesday that the three victims remained in critical condition.

Michael Mata, president of the Dallas Police Association, described one of the officers as gravely wounded — "fighting for his life."

"He's holding in there, but the prognosis is not real positive," Mata said. "The female officer is still in serious, serious condition. She has sustained serious wounds. She is fighting. She is doing better than they suspected. ... But she still has a long ways to go."

Police have identified the wounded officers as Crystal Almeida and Rogelio Santander, who were both assigned to the Northeast Division. The third victim, a Home Depot loss-prevention officer, has not been named.

Juarez, the suspect in the shootings, had been spotted in southeast Dallas driving the truck he'd reportedly fled the Home Depot in. Officers pursued him to a neighborhood near Love Field, where he was swarmed by dozens of officers about 9:15 p.m.

A woman with him was also taken into custody. Her name has not been released.

"I want to thank our Dallas police tonight," Dallas Mayor Mike Rawlings said late Tuesday. "They've taken a punch, and they've come out fighting."

Juarez originally had been described as a person of interest in the shootings, which occurred about 4:15 p.m. He also had an outstanding felony theft warrant, Dallas police Chief U. Renee Hall said.

An off-duty police officer working at the Home Depot near U.S. Highway 75 and Forest Lane had called for assistance after detaining a man, said Hall, who did not explain why he was being held.

When police arrived, the detained man "produced a handgun" and shot the responding officers and the store's loss-prevention officer, police said. The off-duty officer was not wounded.

The three victims were taken to Texas Health Presbyterian of Dallas, where they underwent surgery Tuesday night.

Hall did not explain how the suspect obtained a gun but believed he was still armed as authorities began searching for him in a wooded area and creek near the store.

As police fanned out across the area, light-rail passengers were prevented from boarding or exiting at the Forest Lane Station, DART spokesman Mark Ball said. But service resumed about 7 p.m. as police turned their attention to other locations.

1 / 15Police officers run away from the emergency room to their cars at Texas Health Presbyterian Hospital Dallas after a man shot two officers outside a Home Depot on Tuesday in Dallas. (Ashley Landis / Dallas Morning News) 2 / 15A white truck that was used during a high-speed chase after police took someone into custody in connection with the shooting of two Dallas police officers and a Home Depot loss-prevention officer at a store in Lake Highlands in Dallas on April 24, 2018. The truck was stopped near the corner of Holland Avenue and Versailles Avenue in Dallas.(Andy Jacobsohn / Staff Photographer) 3 / 15Dallas Police officers are pictured waiting outside at the entrance to the emergency room at Presbyterian Hospital in Dallas. Two Dallas policemen were reportedly shot at a nearby Home Depot and reportedly were transported to the Dallas hospital on April 24, 2018. (Louis DeLuca / Staff Photographer) 4 / 15Police officers stand outside a home belonging to relatives of a man who shot two officers outside a Home Depot on April 24, 2018 on Hedgerow Drive in Dallas.(Ashley Landis / Staff Photographer) 5 / 15Police officers stand outside a home belonging to relatives of a man who shot two officers outside a Home Depot on April 24, 2018 on Hedgerow Drive in Dallas.(Ashley Landis / Staff Photographer) 6 / 15Home Depot employees comfort one another outside the store after two police officers and a civilian were shot by a man on April 24, 2018, in Dallas. The officers were critically wounded in the shooting, according to officials.(Tom Fox / Staff Photographer) 7 / 15People watch as the Texas Department of Public Safety rolls in heavy duty vehicles to the Home Depot parking lot after two police officers and a civilian were shot by a man outside the home improvement store on April 24, 2018, in Dallas. The officers were critically wounded in the shooting, according to officials. (Tom Fox / Staff Photographer) 8 / 15SWAT officers patrol around the Home Depot on Central Expressway in Dallas after two officers and a civilian were shot April 24, 2018. The Dallas police officers were critically wounded in the shooting Tuesday outside the home improvement store, authorities said. (Tom Fox / Staff Photographer) 9 / 15Dallas police officers walk to the entrance to the emergency room at Presbyterian Hospital in Dallas. Two Dallas policemen were reportedly shot at a nearby Home Depot and reportedly were transported to the Dallas hospital on April 24, 2018.(Louis DeLuca / Staff Photographer) 10 / 15Two persons stand at the entrance to the emergency room at Presbyterian Hospital in Dallas. Two Dallas policemen were reportedly shot at a nearby Home Depot and reportedly were transported to the Dallas hospital on April 24, 2018. (Louis DeLuca / Staff Photographer) 11 / 15A Dallas police officer watches from a distance at the emergency room entrance at Presbyterian Hospital in Dallas. Two Dallas policemen were reportedly shot at a nearby Home Depot and reportedly were transported to the Dallas hospital on April 24, 2018.(Louis DeLuca / Staff Photographer) 12 / 15Law enforcement officers stand guard at the driveway entrance to the emergency room at Presbyterian Hospital in Dallas. Two Dallas policemen were reportedly shot at a nearby Home Depot and reportedly were transported to the Dallas hospital on April 24, 2018.(Louis DeLuca / Staff Photographer) 13 / 15Dallas police officers bicycle to the entrance to the emergency room at Presbyterian Hospital in Dallas. Two Dallas policemen were reportedly shot at a nearby Home Depot and reportedly were transported to the Dallas hospital on April 24, 2018.(Louis DeLuca / Staff Photographer) 14 / 15Police officers stand outside a home belonging to relatives of a man who shot two officers outside a Home Depot on April 24, 2018 on Hedgerow Drive in Dallas.(Ashley Landis / Staff Photographer) 15 / 15Dallas Police look for a suspect in the shooting of two police officers on Tuesday afternoon, April, 24,2018. (Ron Baselice / Staff Photographer)

Attack on police

Although officials refused to discuss the officers' conditions, their tone was somber as they urged the public to pray for the victims and their families.

"Once again Dallas is at the precipice, looking into the hell of heartbreak as our Police Department was attacked this afternoon,” the mayor said at a news conference.

Rawlings said the shootings were a reminder to respect the risks officers take on behalf of the public.

"The difficulty at the moment is trying to process the emotions of dealing with the officers who were injured ...," he said. "We’re praying for them, but there is still the work to be done."

Suspect's family speaks

Juarez's father, Ruben Juarez, said Tuesday night that he couldn't believe his son was responsible for gunning down three people.

"There's no way my son could've done this," he said, adding that he doesn't think his son owned a gun.

However, he said police had gone to Juarez's mother's house to look for his son and showed her surveillance video of him shooting officers in the face.

Juarez's grandmother, Janie Longoria, said that when police came looking for her grandson, they told her he'd been caught stealing at a Home Depot and someone had been hurt.

"He's a very sweet, sweet, lovable person," she said. "He doesn't carry a gun. He doesn't have a gun."

Longoria said tearfully that she doesn't believe Juarez, who comes from a family of law enforcement officers and has two young daughters, would shoot at police.

"We back up the police officers, and I couldn't believe that one of the members of my family would do that," she said. "I just can't believe it."

Longoria said she her grandson used to live with her but had recently been staying with friends. He has worked as a mechanic and bricklayer for a family business, she said.

Court records show Juarez was arrested in January on a charge of unlawful use of a motor vehicle after officers found him in a stolen truck.

He was also arrested in December on a theft charge. He has pleaded guilty to attempted possession of a controlled substance.

Longoria said she didn't like some of the company he kept, "those low-life people."

"And I told him to stay away from those people," she said.

DFR vehicles leaving the parking lot near Academy, in the same shopping center as Home Depot. Salvation Army truck packing up too. pic.twitter.com/QsEyb7HIl9 — Dana Branham (@danabranham) April 25, 2018

Officer shootings

The officers were the first Dallas police shot by a suspect since a gunman opened fire on officers protecting protesters in downtown Dallas in July 2016. Four Dallas officers and a Dallas Area Rapid Transit officer were killed, and nine others were injured.

Before the ambush, the last Dallas officer to be fatally shot in the line of duty was Norm Smith in 2009.

Dallas officer Josh Burns was shot in 2014 while he and a partner were responding to a domestic disturbance in far northeast Dallas.

Our thoughts and prayers are with @DallasPD and the two officers shot and critically wounded. Texas honors all the men and women who protect and serve our communities, and justice will be served. https://t.co/gkUnxciFOs — Gov. Greg Abbott (@GovAbbott) April 24, 2018

In February, a Richardson police officer was fatally shot after responding to a disturbance call. Officer David Sherrard was the first officer killed in the line of duty in the department's history, and the first on-duty officer to be killed in Texas this year.

Last year, a barricaded gunman in Little Elm unleashed a "hail of gunfire" on Detective Jerry Walker and fellow SWAT officers. Walker was the first Little Elm officer to die in the line of duty.

In spring 2016, Euless Officer David Hofer was fatally ambushed while responding to a report of a gunman at a park.

That same month, Fort Worth Officer Matt Pearce was shot seven times while pursuing two robbery suspects. He survived his injuries and eventually returned to duty.

The Assist the Officer Foundation is accepting donations for the officers who were shot Tuesday at atodallasrelief.firstresponderprocessing.com.

Staff writers Dana Branham, Julieta Chiquillo, Tristan Hallman, Marc Ramirez, Tom Steele, Tasha Tsiaperas and Robert Wilonsky contributed to this report.