2-year-old taken to hospital after shooting himself with gun