The head of a bogus government agency set up in the Nigerian president's office has been arrested after weeks in hiding.