Arsenal manager Unai Emery admits captain Granit Xhaka made a mistake with his public outburst against fans after being substituted.