IMO there's two safe ways to implement this:
- Ground-satellite-ground relaying, with at least one geostationary satellite between the ground stations. The satellites being geostationary means that the path of the beam through the atmosphere is constant, and air traffic can be routed around them in a reasonable way. (You could do this with lower orbits, but it'd be a hassle with current aviation industry technology).
- Beaming by tunnel! Can't get hit by a laser if it's under your feet. Obviously, this negates the benefits of the technology, and just turns into fibre lines without the fibre, over shorter distances, with all the pain in the ass of laying underground cable.
In the first approach, there'd have to be an effective exclusion zone around the receiving station (how big, I don't know), and it'd be nice to have satellites fail safe, so that if they end up pitching or rolling off axis, the beam will be shut off before becoming an accidental weapon.
Safety has been demonstrated with a "virtual enclosure", albeit at a smaller scale: https://youtu.be/Xb9THqrXd4I
You could also fire smaller lower power beams from multiple sources that converge on the receiver, like a gamma knife. 9 points around a large dish could fire beams close together, but only at the intersection would it be at full power.