Observation of magnetic-field-induced ferroelectricity in a compound CaFe3O(PO4)3