There is indeed a problem with azurerm_monitor_diagnostic_setting
underlying Azure's API and the respective AzureRM provider, you can check the full explanation here and here. Unfortunately there's no proper way for Terraform to handle deletions of these resources other than using manual imports.