He needs to materialize himself before he can teleport things so I think he was going to teleport Naruto out of there. If you look he was still materialized when he touched Naruto, then when Kakashi and Gai showed up he became intangible again. I could be wrong though, it could have been something similar to when Kabuto was controlling Nagato and he tried to capture Bee and Naruto.