The New Jersey Attorney General’s Office should have provided representation and indemnification to the Monmouth County Prosecutor’s Office and four employees in a federal civil suit over an off-duty police sergeant who killed his ex-wife with his service weapon, the state Supreme Court ruled in a 7-0 decision.

Citing the attorney general’s denial of both as “not in keeping” with Wright v. State, a 2001 decision holding that prosecutors have a “hybrid role” to serve both their county and state, the court on Tuesday reversed the Appellate Division in Gramiccioni v. Department of Law and Public Safety.