The Australian Federal Police (AFP) has arrested three men for allegedly harassing or threatening three federal politicians.