Karachi stock exchange ends lower