In this paper, the scattering of a plane monochromatic electromagnetic wave from a nanowire with circular cross-section in the transverse electric (TE) mode is simulated using the well-known Stratton-Chu surface integral equations. For an ordinary dielectric nanowire the refraction phenomenon is nicely simulated. In the case of a plasmonic nanowire no sign of surface plasmon excitation and propagation is seen. Transition from electrostatic regime to the geometrical shadow through diffraction regime by decreasing the light wavelength is also observable.