As you activate a library ninjutsu ability, you reveal the Ninja card in your library and shuffle the attacking creature into your library. The Ninja card with library ninjutsu stays revealed and isn’t put onto the battlefield until the ability resolves or otherwise leaves the stack. If it leaves your library before then, it won’t enter the battlefield at all.