It depends.
If it's the first of two (or the first or second of three), then that free throw is no good and you move on to the next one. If it's the final throw of one, two, or three, or either throw of a one-and-one then the ball is dead and you restart with an AP throw in.