American official: Stopping Houthi attacks on ships will take time