A family of explicit exact solutions of Einstein's equations in four and higher dimensions is studied which describes the gravitational field of an object accelerating due to an anisotropic emission of photons.