Thermal radiation and dissipative phase transition in a BEC with local loss