Outflows driven by quasars in high-redshift galaxies with radiation hydrodynamics