Queen jokes with Canadian officer