To be clear, the target of the shooting was an unidentified individual, and a scoped rifle was found in the vicinity.
Maybe something else happened, but it looks like the secret service doing their job and stoppingva shooter before he was ready to take the shot.
But they didn’t because materials that explode like that simply aren’t used as batteries.
Further, software is not magic. In consumer electronics basic power management is done entirely by hardware. A hack cannot short out the battery, because the circuit to do that simply doesn’t exist. Maybe the hack could cause enough of a sustained power draw to overheat the battery and trigger a failure eventually, but that would still look quite different from what we saw.