New Jersey’s attorney general resigned Tuesday after a special prosecutor concluded she violated state ethics laws by intervening in a traffic stop involving her boyfriend.

Zulima Farber, who will step down at the end of the month, said she is leaving office “out of respect for the governor” and not because she was asked to do so.