Just grapple to its head and extend the line. It will push you back far enough to fire rockets and not get hit.