Radiation hydrodynamical simulations of the birth of intermediate-mass black holes in the first galaxies uri icon