A man accused of shooting his wife dead in their bagel shop was ordered to give up guns six months earlier, a prosecutor said.

The victim, Ann Anderson, obtained a court order of protection in November against her estranged husband, 66-year-old Robert Anderson. The order revoked the husband's gun license, and he turned in two guns to authorities, prosecutors said in court Saturday.

But Anderson apparently had or got another gun, and he used it to shoot his 39-year-old wife in the head five times early Friday morning at Super Bagel in Huntington, said Denise Merrifield, an assistant district attorney for Suffolk County.

Police later found parts of the dismantled gun in two separate sewers, Merrifield said.

Robert Anderson pleaded not guilty Saturday to a second-degree murder charge. He was being held without bail.

Suffolk County police have said the Andersons, who had four children, were apparently discussing divorce.

The order of protection against Robert Anderson didn't include the bagel shop, authorities said. Police have said Anderson told investigators he went there Friday to talk about dividing the couple's assets, but he became enraged and started firing.

Anderson's lawyer, Anthony La Pinta, said Saturday that he hadn't seen the confession authorities cited and could not comment yet on its accuracy.

If convicted, Anderson could face 25 years to life in prison.

Ann Anderson, a registered nurse, worked at a local hospital in addition to the bagel shop.

"She didn't deserve this," said sister-in-law Kathleen Perry. "She was a good person."