Three men accused of invading a home Tuesday morning and tying up a mother before one allegedly shot an officer have been arrested and charged, the Houston Police Department said. 

The homeowner, who is the woman's father, told local KHOU that it all started when his daughter saw the men holding a DoorDash bag, and she opened the door to let them know they were delivering to the wrong house. What resulted was an armed robbery and a shootout with police.

"As soon as she opened the door, he pulled a gun out of a DoorDash bag, and he forced entry," Ben Bates told KHOU. "They zip-tied my daughter, and she had her one-year-old and three-year-old, they proceeded to ransack the house. They didn't do anything with the kids but they did have her walking them through the rooms trying to find stuff to take."

CAUSE OF HOUSTON PIPELINE EXPLOSION AND FIRE IDENTIFIED AS AUTHORITIES RULE OUT TERRORISTIC ACTIVITY

Houston officer shot three suspects

Suspects Brian A. Garcia Chavez (left), Michael Perez (middle) and Raymond Perez (right). (Houston Police Department)

Officers responded to the home following a neighbor's call for help. Once inside, they confronted two suspects. While suspect Michael Perez, 38, was being apprehended, Raymond Perez, 35, came out from a back room and started shooting, striking Officer S. Durfee in the leg, police said.

Officer Durfee returned fire but did not hit anyone, police said, adding that Raymond Perez took off running from the back door of the residence. 

Houston Police said a third suspect, identified as Brian A. Garcia Chavez, 18, was waiting in a vehicle and took off after the shooting.  

JOCELYN NUNGARAY MURDER: HOUSTON PROSECUTORS SEEK ICE, CBP RECORDS ON ILLEGAL ACCUSED OF CHILD KILLING

Houston home invasion, police shootout scene

Large response outside a Houston home where police say a home invasion took place before an officer was shot by one of three suspects.  (FOX 26 Houston)

Police said they caught Raymond Perez roughly one block away from the home. He was charged with aggravated assault against a public servant, aggravated robbery with a deadly weapon and unlawful carrying of a weapon. 

SWAT team officers found and arrested Garcia Chavez several hours later, police said. Both Garcia Chavez and Michael Perez were charged with aggravated robbery with a deadly weapon.

Houston home invasion scene on the street

Investigators and others can be seen standing outside a Houston home where three men were allegedly involved in a forced entry before an officer was shot.  (FOX 26 Houston)

CLICK HERE TO GET THE FOX NEWS APP

The woman and her children were not hurt, KHOU reported. 

Officer Durfee was taken to Memorial Hermann-Texas Medical Center and has since been released, police said. Durfee is expected to make a full recovery.