Depends of the wavelength and how you're looking for the return. I use a 1W Green LIDAR and I can detect the reflection up to about 6km.
-
The beam will go on forever -- many billions of light years. Or until it hits something and is absorbed.
-
As far as obstacles prevents the beam from going on.
-
It won't make it out of the atmosphere. A few miles at best.