Elimination of spiral waves and spatiotemporal chaos by the pulse with a specific spatiotemporal configuration