Unfortunately, espionage tends to attract “the ends justify the means” types, who then quickly lose track of their own moral compass.
They should have found a way of protecting “Beth” without exposing themselves. It’s really just a case of them being lazy and incompetent. Which is not something you want of your security service.