Gravitational field of a spinning mass as an example of algebraically special metrics