You can draw curves by using this tool. Click the left mouse button to indicate the starting point of the curve, then click again for consecutive control points of the curve.
Krita will show a blue line with two handles when you add a control point. You can drag these handles to change the direction of the curve in that point.
You can click on a previously inserted control point to modify it. With an intermediate control point (i.e. a point that is not the starting point and not the ending point), you can move the direction handles separately to have the curve enter and leave the point in different directions. After editing a point, you can just click on the canvas to continue adding points to the curve.
Pressing Delete will remove the currently selected control point from the curve. Double-click the left mouse button on any point of the curve or press Enter to finish drawing, or press Esc to cancel the entire curve. You can use Ctrl while keeping the left mouse button pressed to move the entire curve to a different position.