Pakistan court dismissed judge who convicted ex-premier