Police say a six-year-old boy somehow got hold of a gun and fired at his teacher, critically wounding her.