Driveway Alarm

changing 9 volt battery

While changing the 9V battery in the sensor, the male contact came loose from the battery, and I am unable to remove it from the female receptacle attached to the unit, in order to install a fresh battery. Any advice will be appreciated. Doug