Resigns as minister