BROOKSHIRE, Texas -

A security guard Friday afternoon opened fire on a would-be robber inside a Brookshire credit union, killing him.

The Waller County Sheriff's Office says it happened just after 2 p.m. during a robbery at the 1st Service Credit Union on 5th Street.

We're told an armed man walked into the bank and got some cash from the employees.

As the suspect ran out into the parking lot, an off-duty Brookshire police officer working security shot the suspect, officials said.

The suspect died on the scene. Officials say no one else was hurt during the robbery.