Excitation of kinetic Alfven waves by resonant mode conversion and longitudinal heating of magnetized plasmas