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