A woman police officer has been threatened and abused by newly released prisoners housed in her block of flats.