The feedback of an HC HII region on its parental molecular core. The case of core A1 in the star-forming region G24.78+0.08