Tunable photonic heat transport in a quantum heat valve