A backpack that appeared to contain pipe bombs exploded Monday as a police robot examined it near an NJ transit station.