3-year-old in hospital after accidental shooting