The two forces acting at the two ends of the string are not an action-reaction pair. They correspond to two different interactions.
At one end (let's say where you pull by hand) there is the interaction hand-string. You pull with F1, the string pulls with -F1.
At the other end you have interaction between the string and wall and again you have F2 on the string and -F2 on the wall.
If the center of mass of the string does not accelerate, you will have F1=F2 (in magnitude) and the net force is zero. This does not prevent tensions developing in the string.
The fact that the net force is zero just tell you that the acceleration is zero. But they don't have to be equal.
Now, usually the string is assumed massless in elementary problems so even when we have acceleration the two forces are taken as equal. And the tension along the string is assumed to be constant and equal to either one of these forces.
So, to go back to the point, you can and many times do, create tension in a body by applying equal forces at different points of the body.