Upvote:2
In most cases the application is done locally. So you will have to contact them directly and ask when you can come by and pick up the passport, thus withdrawing you application.
Often the local consulate (which you have not supplied) web site will contain information on how to deal with the matter that the passport is needed during application. This is, however, the exception to the rule and not always possible.