The local authority said it was trying to promote “civilised” behaviour – but later apologised.