A New Jersey police officer and three others were killed after an hours-long gun battle followed what officials are calling a "targeted" attack.