A 2-year-old was critically hurt in a shooting Thursday afternoon, Chicago police said.