Beat it to death with a Louisville Slugger.
We already took it down and took it to another room. The noise is still coming from within the ceiling/attic---there's just a hole where the detector was, so there's either another one up there or a battery of some kind inside the attic. Otherwise, I would have smashed it to bits already.