The Hecke correspondence via Yang-Mills-Higgs flow lines