Sometimes dog displace their excitement and direct it inappropriately at something else, like another dog. You might want to get a vet check for both dogs to rule out any medical issues, and then consult a veterinary behaviorist. Things like this generally require the help of a professional, because a bunch of people on the internet can't see what is actually going on and what might be triggering these issues.
In the meantime, keep the dogs separated to prevent any more attacks.
In the meantime, keep the dogs separated to prevent any more attacks.