I'm going to guess that at current tech, the device would manage to turn only a small percentage of the energy yield into a collimated beam before being vaporized by the explosion.
The rest of it would be omidirectional - and exploding nuclear devices in orbit has been shown to do bad things...