The mayor has apologised, saying his comments about a person of Indian descent were a "fumbled attempt at humour."