Collisional loss of electrostatically confined species in a magnetic mirror