Authorities say a paternity dispute led to a shooting outside of the Chesterfield County courthouse that wounded two people.