A shattered pellet injector based on in situ technology was installed on the HL-2A tokamak, and preliminary experiments were performed recently. In this paper, a fast current shutdown experiment introduces shattered pellet injection (SPI). In comparison with spontaneous disruptions and massive gas injection, SPI has advantages for disruption mitigation. The experimental results show the hard-X-ray radiation intensity (40 to 60 keV) rapidly falling from 20 to 0 when SPI is used. From this, we can infer that runaway electrons are suppressed. This observation indicates that SPI should be a good candidate for current fast shutdown in the future.