Three detained after police encounter in Karachi