On the Maximum of the Sum of Squared Distances Under a Diameter Constraint