Uniform energy distribution for an isoperimetric problem with long-range interactions