2 seized in pirate attack off Nigeria, U.S. official says