Detective in corruption storm after he allegedly released man arrested for raping a child