Possibility of using laser action on a celestial body approaching the Earth