The formation of the Ca ii K line in a spinning spicule