Canadian prime minister condemns 'appalling' attack on Muslim man