Radiative instability in a diverted plasma