Vacuum polarization induced by a cosmic string in anti-de Sitter spacetime