Compute binary segmentation Dice loss from probability and target masks with the specified smoothing term.