Second-harmonic generation by focused excitation of inhomogeneously distributed scatterers