Alan Garcia's victory is blow to Venezuelan President Hugo Chavez, who had endorsed another candidate.