The imminent closure of St Mary’s maternity ward at Poole Hospital will be “really sad”, a University Hospitals Dorset chief has said.