A hospital security guard has been convicted of murdering an Army veteran after using a gay dating app to lure him to his death.