AGILE observation of a gamma-ray flare from the blazar 3C 279