Far-right Swedish politician quits over dynamite arrest