Israelsk politi har anholdt en 20-årig beboer i Hebron, mistænkt for at true en embedsmand i Jerusalem med mord og planlægning af en terrorhandling.