A Police Scotland copper has been charged following an anti-corruption probe.