And from konektor, other part of circuit connect via 2K resistor.
You have to be careful when using the pin as an input.

While a series R can help isolate the pin from the ICSP programmer, if the external circuit is driving the pin high then this can change the idle state of the pin that the PIC sees during programming from low to high depending on the R value. The ICSP typically has 4.7K pulldowns on the PGC/PGD pins, so the series R creates a voltage divider which you may need to take into account too.