Most likely the birds attacking the dog (or anyone) are protecting a nearby nest. Try to keep away (and keep the dog away) from the area for now. Birds don't just attack for no reason. It's most likely that its a mama and daddy bird protecting their young.