A man has been found guilty over the shooting of a nine-year-old girl outside a restaurant in a long-running gang feud.