You've got this the wrong way around.
You're trying to deflect an entire star, which engineers refer to as very very heavy.
You're doing this to save a planet, which those engineers might refer to as merely very heavy.
Any technology capable of measurably changing the trajectory of an entire star would be better put towards adjusting your home planet's own orbit, current or future, to ensure that it remains in the neighbourhood that the current occupants like.
If you don't have the technology to change your planet's orbit, you don't have a whelk's chance in a supernova of deflecting a star.
Lets have a slightly less sarcastic look at an existing proposal for moving stars around, though.
A Shkadov Thruster needs similar construction techniques to a Dyson swarm, but basically involves making one giant statite and using it as a solar sail, bound to the star by its own gravity. Upside: your friend might be able to build it, assuming that
- they can get to the problem star in good time
- there's enough mass available at the destination star
- they can get building pretty swiftly
Unfortunately, the thrust of one of these things is rather low, defined by
$$F_A = \frac{L_s}{2c} (1 - \cos{\Psi})$$
where $L_s$ is the luminosity of the star and $\Psi$ is the mirror rim angle. If we model our star on Barnard's star we have a luminosity of ~1.22x1024W, and if we make the statite a nice hemisphere we have a rim angle of 90° and a thrust of ~2.05x1015N, giving a maximum lateral velocity change of about 1.4mm per second after six thousand years of operation.
You should probably start work at least a million years ago, preferably last galactic year.
I am now wondering if you could speed things up using your own Nicoll-Dyson laser to warm up the target star a little...
If you reconfigured your own dyson elements to make a Shkadov thruster around the much hotter F5V star you'd get 3 orders of magnitude more thrust for only 1 order of magnitude increase in mass... that's a whole 28cm per second velocity after 6000 years! It isn't enough to get you out of the way in time, as you're still only going to have moved less than a quarter of an AU by the time the other star arrives, and it means you can't use your dyson elements to harvest power for other mitigation techniques.
As a slightly less implausible solution, PcMan suggested a good way to move a planet is with the use of a gravity tug, which basically involves bringing a large object close to the homeworld in question and using rockets to stop it crashing into the planet (and a clever orbit to stop the rocket plumes impinging on the planet's surface or atmosphere). Their mutual gravitational attraction will cause the planet to change orbit over time.
(PcMan doesn't seem to be writing an answer of their own on this, so I'll tack my take on it down here, but I'll pop it off again if they change their mind)
An acceleration of 1m/s/yr will add up to a good 6km/s over time, which should help push it into a position where its year length and location when the star flies by is, if not necessary safe, might be safer. Moreover, it might give a way to correct a surprise escape trajectory into something more comet like, given the occupants time to sort out a more permanent solution.
To get this acceleration on a planet of mass $M$ ~4.18x1025kg, we will need a force $F$ of ~1.32x1018N. If the tug is placed at radius $R$ 15000km from the planet's barycenter, it needs to mass $\frac{FR^2}{GM}$ ~1.07x1017kg. That's in the same ballpark as real-life moon of Saturn, Hyperion. This is a potatoid rock about 360x260x160km in size. Hyperion is a bit bigger than we need by a factor of about 4, so you can slice it up and use the leftovers for reaction mass.
Gravity will pull your tug towards the planet with the same force as it is tugging the planet. You will therefore need an engine capable of exerting similar force to keep your tug in space. Having ownership of a partial dyson sphere will give you all the energy you need (50% of the output of an F5V is going to be of the order of 1.4x1027W, which is quite a lot. Even if only 1% of that was captured, you're still doing well) and you should have no problem powering a suitable mass driver firing ground-up moon to keep your asteroid in place.
The biggest problem you'll have in the future is the fate of your dyson components. They're very valuable, and very hard to replace, as they'll represent a non-trivial proportion of the easily available mass in your planetary system, and the rest of the mass is going to be flung into deep space when your visitor arrives. Moving them into safer locations inevitably entails reducing the power supply available to your tug. You might need to build an absolutely vast fusion plant on it, and grind up a few ice moons to feed it for the final stages of the visitation...