The child was in a home when they were struck after shots were fired between three people in the street, police said.