A 3-year-old boy was rushed to the hospital Tuesday night after accidentally shooting himself with an unsecured gun at a Glendale home, police say.