The only way I could even think to be able to identify a mine-suicide as being intentional with the purpose of denying the kill credit would be someone going full-auto on their mines and especially coming to a full stop when doing so to make sure their mine hits themselves.
Anything else becomes questionable because CDing a target in the hopes of detonating their own nuke on themselves right as they drop it has practically ALWAYS been used as an offensive play to kill a target.
I doubt its possible, but the work around for that would be if the server could identify who launched the CD that detonated the mine causing the suicide and give that player the credit. If it was the same player as who launched the mine then ofc no credit.