The OP said "It was in my friend's neighbour's garden.." Which made me wonder why, as suggested by some people, the dogs should have been kept on leads. There's a possibility, surely, that the dogs reacted to an invasion of their territory, and the fox's failure to run away was interpreted as an aggressive act.