Parton Energy Loss in Heavy-Ion Collisions Via Direct-Photon and Charged-Particle Azimuthal Correlations