If this had only contained the first part, that would have been alright - apologising...
But you didn't consider the city-school as anything important, so you disrespected everything about it, as well as Mr D and everyone. No one comes to joke in schools.
There's a fine line between humour and disrespect, and I think you now realise where you stood with the reaction you got.