Former police officer arrested for illegal recording of ex-girlfriend