NCP MLA in rape case detained