Surveillance camera next door to where a deputy was shot, captures the gunfire.

Shortly after the deputy was shot, another deputy arrived and transported him to Methodist Hospital in Katy. He's in stable condition after receiving surgery.

"Please keep our HCSO deputy in your prayers. He was shot while responding to a call for service. He sustained a gunshot wound to his upper leg and is currently hospitalized," Sheriff Ed Gonzalez tweeted.

After an hours-long search, deputies found and arrested 39-year-old Brady. He has been charged with aggravated assault serious bodily injury, aggravated assault on a police officer and burglary of habitation with intent to commit assault.

Update on Plantation Tree Ct: Brady Joseph Ray is the person of interest in our investigation. Ray is described as a white male, 39yrs, 5’11”, medium build, wearing black shorts, gray shirt. Ray was armed with a pistol. #HouNewspic.twitter.com/O4ZCNpsXvl