Magnetization self-organization in a single-domain ferromagnet subject to a spin current