Casimir energy for a dilute dielectric ball at finite temperature