A former San Antonio police officer faces up to 10 years in federal prison after pleading guilty to being a convicted felon in possession of a firearm, authorities announced Thursday.

Appearing before a U.S. magistrate judge Wednesday, Jack Nealy admitted that in Nov. 2011, he was in possession of a .40 caliber pistol and was wearing a replica United States Department of State badge, when he was apprehended in the parking lot of a San Antonio nightclub.

Attorneys said Nealy was also convicted in federal court in the Western District of Texas of bank robbery in 1993 and served a sentence of 121 months imprisonment.

Nealy, who remains in federal custody, is scheduled to be sentenced on Oct. 24 before U.S. District Judge Orlando Garcia in San Antonio, authorities said.