AFL commentator apologises for on-air 'gay slur'