Multi-wavelength observations of the flaring gamma-ray blazar 3C 66A in 2008 October