Click on the page with the Shape Tool to start the line. Click again where you want to end the line or the line segment.

Does this not work?