His visit brought a welcome distraction to a land still reeling from a war with Israel last year, with many fearing a renewal of hostilities.