You need to put that tool with the strange shape handle into the end of the cassette. Then put the wheel back on the bike. When you pedal with the chain on the biggest sprocket the handle of the tool will bear against the frame and unscrew the retainer.