AGILE detection of a rapid γ-ray flare from the blazar PKS 1510-089 during the GASP-WEBT monitoring