Police say a 9-year-old got a hold of a gun in a home and accidentally shot a 6-year-old boy in the head while an adult was present.