Pauline Hanson has been caught on a hot mic swearing about a journalist moments after a tense exchange between an adviser and the media.