Method for producing narrow pores and structure having the narrow pores, and narrow pores and structure produced by the method