FORT BEND COUNTY, Texas -

A witness played an instrumental role in the arrests of two men after a bank robbery.

Fort Bend County sheriff's deputies said the Bank of America in the 9200 block of Highway 6 was robbed about 3:30 p.m. on Wednesday.

A deputy who was driving by the bank spotted a man wearing a baseball cap and a towel over his face walking into the bank, officials said. That deputy immediately pulled over and the man was walking out of the bank once he got into the parking lot, investigators said.

Deputies said that the man robbed the bank at gunpoint. The tellers complied with the man's demands and no one was hurt.

The deputy began chasing the man on foot, officials said. The chase went across Highway 6 and the deputy lost sight of the man.

Deputies said a witness said he saw the man get into a Chevrolet Impala, and he gave investigators the car's license plate number.

The license plate was tracked to a home in Harris County. Deputies said they went to that home and found the robbery suspect, 28-year-old Luis Hernandez, and a second man, 20-year-old Oscar Duran. Both were arrested and charged with aggravated robbery.

Investigators said they also found the stolen cash.