A Miami police officer who recently resigned while under investigation surrendered to authorities Thursday on criminal charges stemming from an FBI investigation. He became the second officer charged with involvement in an alleged protection racket for a sports-betting ring operating out of a Liberty City barbershop.

Harold James, an eight-year veteran, is charged with two counts of extortion involving providing protection for “the cashing of fraudulent checks’’ in exchange for cash payments, according to court records.

He is scheduled to make his first appearance in federal court Thursday afternoon. Prosecutors are seeking to seize $800 from James that they say he pocketed from the alleged protection racket in 2012.