NEW YORK ( AP ) -- Ambac Financial Group Inc. swung to a deep fourth-quarter loss after taking a $ 5.21 billion write-down , and is reviewing ways to raise capital , the troubled bond insurer said Tuesday .