So if I understand correctly, this is not obligatory careless or reckless, could be just a basic foul who might not be worthy of a card if it wasn't for the goal situation
The law says that the foul should be committed for the purpose of breaking up a promising attack. It doesn't say that it has to succeed. This is one of the few areas of the laws where the intent of the player is relevant.If you think that the defender is denying an opportunity, how could the GK before that, break a promising attack ? He didn't break anything if the next incident is a DOGSO