Activists detained in Pakistan before judge’s visit