A senior Australian Federal Police detective who admitted to lying under oath about evidence seized during a criminal investigation will spend four months behind bars.