HOUSTON, Texas (KTRK) -- A suspect accused of shooting and injuring a Harris County Sheriff's deputy has been detained.
Moises Martinez, 37, who was identified as the primary suspect on Tuesday, was detained following a four-hour manhunt in north Harris County.
It all began in the 1200 block of Forestburg Drive just before 6 p.m. According to Sheriff Ed Gonzalez, two deputies were responding to a call for service regarding a suspicious person.
When deputies arrived at the scene, they found Martinez, who pulled out a weapon and began firing toward the deputies. During the incident, one of the deputies was shot in his hands and his back, but his vest protected him. A second deputy at the scene was able to fire back at Martinez but did not hit him.
WATCH: Surveillance video captures exchange in gunfire between deputies and suspect
Martinez reportedly had two felony warrants out for him. According to court records, one of Martinez's warrants dates back to October 2020, when he was taken into custody after a five-hour standoff. Records state the standoff started when Martinez's mom accused him of robbing her.
The wounded deputy, identified by the sheriff only as Deputy Barragan, was taken to Northwest Houston Hospital, where he was said to be alert and conscious. He is expected to recover from his injuries.
"Very relieved to find out that our deputy is going to be okay," said Gonzalez during a briefing with reporters on Tuesday night. "He is stable. He's conscious. He gave me a thumbs up. He was smiling."
Gonzalez said Barragan has been with the Harris County Sheriff's Office for about 18 months and served with another local agency for about six years.
Follow Jessica Willey on Facebook, Twitter and Instagram.