Alleged criminal killed in an encounter in Karachi