A veteran New Jersey police officer who violated a restraining order was shot and killed during a nine-hour standoff at his home, and authorities were trying to determine whether he killed himself or was hit by fellow officers.