Calculation of the nonstationary interaction of jet flows with a two-dimensional target