Firefighters rescued a man and woman who were trapped on the second floor of the three-storey building.
Crews also evacuated four people from other flats as a precaution.
Officers say it appears the immersion heater had exploded with quite some force and destroyed the cupboard it was in.