A man accused of opening gunfire into a car has denied the attempted murders of an eight-year-old girl and her father.