The girl had been enjoying a fireworks display with family members when one firework shot sideways and struck a swing before changing direction and hitting the child