A federal judge in Dallas on Friday sentenced 36-year-old Joseph Lamon Williams of Houston.
Prosecutors say Williams on Nov. 16 held up a Wells Fargo Bank by handing a teller a threatening note and flashing what appeared to be two handguns.
Investigators say Williams fled with an undetermined amount of cash, took a cab to a nearby apartment complex, then transferred to another taxi and returned to an area near the bank. Authorities say Williams was confronted by a police officer and refused to drop his weapons, which turned out to be pellet guns.
The officer opened firing, slightly wounding Williams.
Further details on his conviction were not immediately available Friday.