COAS pays farewell visit to Karachi