Minister quits over rape case