Minister quits over indecent remarks