Interaction of a two-dimensional electromagnetic pulse with an electron inhomogeneity in an array of carbon nanotubes in the presence of field inhomogeneity