Prosecutor on leave for alleged sexual relationship with detective