Salem County prosecutors say Eric Smith Jr. also faces aggravated assault and weapons counts stemming from Wednesday's confrontation in Salem.
The shooting spurred a standoff that lasted for more than three hours before the 26-year-old Quinton Township man surrendered.
Authorities say a U.S. Marshals Regional Fugitive Task Force was trying to arrest Smith on some warrants when they arrived at his girlfriend's apartment.
As they entered the apartment, Smith left through a bedroom window and went onto a roof where he allegedly shot at the officers.
One officer returned fire, but no one was injured.
Schools and businesses in the city were locked down during the standoff.
Send a News Tip to Action News
Learn More About 6abc Apps