A New Jersey police officer died on his way to work Friday when he stopped to help someone and was struck by a car, officials said.