CORRECTION: A previous version of this story said two suspects were arrested in connection with the shooting. One suspect has been arrested and charged, and the other was apprehended, questioned and released, according to law enforcement officials. This story has been updated to reflect that information.

HOUSTON (KXAN) – The suspect wanted in connection to a shooting that injured a Harris County Sheriff’s deputy Wednesday night was arrested and charged with attempted capital murder, according to the Harris County Sheriff’s Office.

The Texas Department of Public Safety issued a Blue Alert for two suspects late Wednesday night after a Harris County sheriff’s deputy was shot and wounded.

According to Gov. Greg Abbott’s office, one of the suspects was apprehended Thursday. HCSO said on social media he was questioned and released. No charges were filed against him.

The other suspect, Terran Green, was taken into custody Thursday night around 11:50 p.m. after a standoff with SWAT in Humble, northeast of Houston, according to a social media post from Harris County Sheriff Ed Gonzalez.

Terran Green was charged with three counts of attempted capital murder, according to the sheriff’s office.

Two law enforcement officers were shot during that incident, Gonzalez said in another post. At the time, their condition was unknown but initial information was that their wounds were not life-threatening.

Police were looking for a Blue 2016 Ford Escape with a Texas License Plate SVJ6590 but said in an update at 5:30 a.m. Thursday that the car had been located.

Sheriff Gonzalez said the 29-year-old deputy was conducting a traffic stop on Homestead Road in northeast Harris County when the shooting happened, according to NBC station KPRC-TV.

“The initial information I received that he’s possibly been shot twice. There may be some exit wounds as well so I would say at least a couple of times.” Gonzalez said. “I’m not going to get into specifics because once they get in there, they are doing surgery now, they may find other wounds that maybe weren’t visible to the naked eye but we’ll let them do their work. But he’s fighting the good fight, we’re standing with him and we’re asking for prayers that’s the main thing.”

“At this point we’re just praying that he makes a full recovery. Obviously he’s very critical so we’re askign for our community’s prayers. Our community always stands with us and so first and foremost we’re asking for prayers.”

Sheriff Ed Gonzalez, Harris County

Governor Greg Abbott posted at 9:11 p.m. Wednesday that the Department of Public Safety was deployed and responding.

The Office of the Governor’s Public Safety Office was offering a reward of up to $20,000 for information leading to the arrest of the person or persons involved in the shooting.

According to the Department of Justice, Blue Alerts can be issued after an officer is killed or seriously hurt in the line of duty, is missing in connection with official duties or when there is a threat to kill or hurt an officer. The DOJ’s Office of Community Oriented Policing Services (COPS) says Congress passed the Rafael Ramos and Wenjian Liu National Blue Alert Act in 2015. It is named in honor of two New York City police officers killed in an ambush attack on December 20, 2014.