AstraZeneca reports loss; confirms purchase of Actavis unit