A Charleston judge has sentenced a former U.S. State Department employee to probation and home detention for embezzling almost $59,000 from the federal government.

Steven Medlock, 60, of Summerville, pleaded guilty to the theft last year.

U.S. District Court Judge Richard M. Gergel sentenced Medlock to one year of probation and four months of home detention, according to a document signed and filed Friday. Medlock also must pay a $3,000 fine and cannot possess firearms or other dangerous weapons.

He had faced a maximum punishment of 10 years in prison, a $250,000 fine and three years in a supervised release program.

Gergel received more than a dozen letters of support for Medlock from his family, acquaintances and former co-workers, including one from his ex-boss at the State Department.

Medlock had repaid all the money before waiving indictment and pleading guilty in August, according to Rhett DeHart, assistant U.S. attorney.

Medlock was a disbursement specialist for the department’s Global Financial Services Center, which handles worldwide billings and other transactions from the former Navy base in North Charleston.

The U.S. Attorney’s Office said he created a sham company that submitted fake invoices to collect about $58,700 in currency-exchange fees from September 2011 to April 2012. He also forged an unidentified person’s name on payment vouchers as part of the embezzlement, prosecutors said.

The money was deposited into a bank account that Medlock controlled.

An anonymous tipster alerted law enforcement.