Venezuelan president leaves Iraq after controversial visit