Modified black hole solution with a background Kalb–Ramond field