On transversal infinitesimal automorphisms for harmonic foliations