Beauly hosted Lochaber in the first round of the MacTavish Cup, with the visitors winning narrowly 2-1.