We consider a propagation of laser pulse in a semiconductor under the conditions of an occurrence of optical bistability, which appears due to a nonlinear absorption of the semiconductor. As a result, the domains of high concentration of free charged particles (electrons and ionized donors) occur if an intensity of the incident optical pulse is greater than certain intensity. As it is well-known, that an optical beam must undergo a diffraction on (or reflection from) the domains boundaries. Usually, the beam diffraction along a coordinate of the optical pulse propagation does not take into account by using the slowly varying envelope approximation for the laser pulse interaction with optical bistable element. Therefore, a reflection of the beam from the domains with abrupt boundary does not take into account under computer simulation of the laser pulse propagation. However, the optical beams, reflected from nonhomogeneities caused by the domains of high concentration of free-charged particles, can essentially influence on a formation of switching waves in a semiconductor. We illustrate this statement by computer simulation results provided on the base of nonlinear Schrödinger equation and a set of PDEs, which describe an evolution of the semiconductor characteristics (concentrations of free-charged particles and potential of an electric field strength), and taking into account the longitudinal and transverse diffraction effects.