A criterion for transience of multidimensional branching random walk in random environment