The correctional officer, accused of directing another guard to search the jail’s inmate database, intends to fight the allegations, his lawyer said.