Perhaps. Best to blow the stuff away into a new orbit not hazardous to the Earth (maybe falling into the Sun) and hope that few, if any bits of rubble remain big enough to make it through the atmosphere to the ground, but yes, if done right, I think a shaped nuclear charge of the right size on the right side at the right time is probably the best hope of evading Bennu if it ultimate proves on a direct course to collide with Earth.
One bonus is that Bennu's orbit is tilted to the ecliptic by 5 or 10°.
You don't want a shaped charge. You want maximum disruption of the body. A shaped charge will punch a hole but not spread the asteroid apart.