Updated

An illegal immigrant from El Salvador was in custody Tuesday after one Houston police officer was shot and killed and another wounded at a southwest Houston apartment complex, authorities said.

Houston Police Chief Art Acevedo confirmed the arrest and officials with Immigration and Customs Enforcement (ICE) later told Fox News that the suspect was in the U.S. illegally.

The slain officer was identified as Sgt. Harold Preston, a 41-year veteran of the force.

"We've lost just a wonderful human being," Acevedo said during a news conference at Memorial Hermann Hospital. “He is leading with men and women on streets, instead of choosing to sit in an office drinking coffee and reading the paper. That is the man he was — he is a man who lived with elderly parents to take care of them. As good as he was as a cop, he was a better human being, that is just the guy that he was and we are going to miss him.”

The wounded officer, identified by Mayor Sylvester Turner as Courtney Waller, is a three-year veteran of the department who was shot in an arm. He was expected to recover.

The suspect was identified as Elmer Rolando Manzano-Martinez, 51. ICE officials identified him as a "convicted criminal alien who is unlawfully present in the U.S."

Following his arrest Tuesday, ICE officials from the agency's Enforcement and Removal Operations (ERO) unit placed an immigration detainer with the Harris County Sheriff's Office, ICE said in a statement.

Suspect Elmer Rolando Manzano-Martinez, 51, is an illegal immigrant from El Salvador, authorities say. (Texas Department of Public Safety)

ICE lodges detainers against suspects who have been arrested on criminal charges and who ICE has probable cause to believe are removable aliens, the agency statement said. The detainer requests that a state or local law enforcement agency notify ICE in advance if the suspect will be released.

The shooting prompted a large law enforcement presence near the 2600 block of Holly Hall Street with multiple police and fire units responding to the scene. A SWAT team was called for “a possible barricaded suspect,” Houston police said.

ANOTHER BLOODY WEEKEND IN CHICAGO AS GUN VIOLENCE LEAVES SEVERAL KILLED INCLUDING A TEENAGER

A bystander came to Waller's aid and escorted him to safety in front of the apartment complex, Acevedo said. The man then went back and grabbed Waller's gun, which fell on the ground a short distance away, wrapped it in a towel and handed it to other responding officers, the chief said. 

Police said Manzano-Martinez was shot in the abdomen area and was stable. He was expected to be charged with murder, Acevedo said. 

In a tweet, the chief said two officers were hit by gunfire and asked the public to “please continue to pray for our officers, their families and their extended @houstonpolicefs@I love you.”

The Houston Police Officer's Union tweeted Preston was weeks away from retirement. He was sworn into the department on Aug. 25, 1979, the union said. 

Acevedo said the officers were responding to a domestic violence call around 8:15 a.m. Manzano-Martinez's estranged wife told Preston, 65, Waller and another officer that she was moving out of the apartment and needed to get some items inside. 

Manzano-Martinez's 14-year-old son was with his mother and the officers in a parking lot for an hour before the teen opened the door to the unit just before 9:30 a.m. He saw his father with a firearm and teen warned the officers before Manzano-Martinez fired multiple rounds in their direction, Acevedo said. 

Preston was hit multiple times, including more than once in the head. He was moved to safety by other officers. Manzano-Martinez surrendered after barricading himself inside the apartment. 

Police vehicles at the scene where two officers were shot in southwest Houston on Tuesday. (KTRK)

Police officers responded to the unit twice over the weekend for domestic violence issues, Acevedo said. He was unsure if any weapon was recovered Tuesday. 

Acevedo told reporters that Manzano-Martinez has long criminal history. In 2002, he was charged with evading police, for which he received 120 days in jail, Houston's KPRC-TV reported. 

The suspect has been arrested at least four previous times, dating to 1994, Houston's KHOU-TV reported. The charges have included unlawful carrying of a firearm in October 1994; assault in August 2000 and December 2000; felony assault and causing bodily injury to a family member in May 2001; and evading arrest with a motor vehicle in December 2002, the station reported.

In a statement, Texas Gov. Greg Abbott, a Republican, called Preston's death a "tragic reminder of the dangers" law enforcement officers face. 

CLICK HERE TO GET THE FOX NEWS APP

The Houston Police Department was expected to escort Preston's body to the medical examiner's office.  

The shooting comes days after an arson investigator and arson suspect were killed during a shootout in the city last week.