Charged vector particles in a magnetic field