NEWARK -- An Irvington man admitted on Tuesday to shooting his ex-wife two times in 2014 during an altercation at her Newark apartment building.

Anthony Konah, 55, pleaded guilty to aggravated assault and unlawful possession of a weapon in connection with the Oct. 21, 2014 incident. His ex-wife survived her injuries.

In exchange for his guilty plea, prosecutors have agreed to recommend a 10-year state prison sentence for Konah, according to Essex County Assistant Prosecutor Sara Wilson, who is handling the case. Konah would have to serve eight and a half years before becoming eligible for parole, Wilson said.

As part of the plea agreement, charges of attempted murder and possession of a weapon for an unlawful purpose against Konah will be dismissed, Wilson said.

Konah's sentencing is scheduled for March 14 before Superior Court Judge Ronald Wigler.

Authorities said the incident occurred outside the ex-wife's apartment building in the 500 block of Central Avenue in Newark after Konah confronted her there and the former couple started to argue. After the shooting, Konah returned to his vehicle and drove off, authorities said.

During Tuesday's hearing, Konah answered questions from his attorney, Stephen Brown, as he admitted shooting his ex-wife two times, once in the shoulder and once in the leg.

Konah was arrested on Oct. 28, 2014 and later sent to the Essex County Correctional Facility. He was released from custody on Feb. 5, 2015 after posting $60,000 bail, court records show.

Following Konah's guilty plea, Wilson called on Wigler to revoke Konah's bail and remand him to the Essex County jail, because he is facing a lengthy prison sentence.

"Because of the jail time he's facing, there is a substantial flight risk in this case," Wilson told the judge.

But Brown asked Wigler to allow Konah to remain released on bail. Brown argued Konah has appeared for each court appearance, and he said Konah would return to court for his sentencing.

"He's an older gentleman," Brown said. "I think he realizes that there's no place for him to run and hide."

The judge permitted Konah to remain released on bail, acknowledging that Konah has appeared for every court appearance. But Wigler said Konah must continue to not have any contact with his ex-wife.

Bill Wichert may be reached at bwichert@njadvancemedia.com. Follow him on Twitter @BillWichertNJ. Find NJ.com on Facebook.