6-year-old dies after finding loaded gun inside home