Effects of dynamical screening on resonances at inner-shell thresholds in semiconductors