It is a little bit complicated. White has three options with : playing kikashi at
which is safe, playing descent at
and playing
as here.
It seems that Black lives in all variations but some are better and some worse for White. In the variation in the diagram White takes the stones in sente. But probably Black's resistance was not the best.