Theory of spin and lattice wave dynamics excited by focused laser pulses