CCD photometry of variable stars in the Magellanic Clouds. II : The eclipsing binary HV 2274