The suspect has been identified as 34-year-old Mark Walker.
Police were serving a search warrant at a home in Long Branch Friday night when they say Walker shot a detective in the leg.
He then barricaded himself inside.
Hours later, police say, Walker set the apartment on fire and tried to run, opening fire on officers.
That's when they returned fire, killing him.
The detective who was shot has been released from the hospital.
ALSO READ | New Jersey football team under investigation after alleged hazing incident
* Get Eyewitness News Delivered
* More New Jersey news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
* Follow us on YouTube
Submit a News Tip