A Miami police officer accused of exposing himself to a female convenience store worker has resigned.

James Lloyd Gambill Jr., 48, resigned Thursday morning, two days after charges of indecent exposure were filed against the 15-year veteran of the local police force.

Gambill turned himself in to authorities Wednesday and is currently free on $5,000 bond.