Your dog might be having mastitis which is inflammation of mammary gland. In nursing dogs, it can be due to breast engorgement. During this condition milk ducts are blocked. This condition is more prone to get bacterial infection. As your dog is nursing and mastitis at this time can leads to another serious problem called gangrene mastitis if not treated on time. So, take your dog to vet immediately.