Former Venezuelan opposition presidential candidate Edmundo Gonzalez has left the South American country after seeking asylum in Spain, according to a senior Venezuelan official.