One- and two-nucleon emission following the nuclear radiative pion capture