An off-duty Boston police officer was viciously punished for her good deed when she responded to a beaten woman’s cries for help only to be attacked by the woman and her boyfriend, police said yesterday. The officer was walking through the Back Bay about 11 p.m. Friday when she heard a woman calling for help, police said.