The shooting took place about a mile west of the scene of the robbery. Authorities say deputies opened fire when Pena reached for a handgun in his waistband.
He was taken to Community Regional Medical Center for treatment and is currently being held on charges of armed robbery and assault with a deadly weapon.