The sentence which is not grammatically correct is Yo beso a Ana ayer.
With ayer ( = yesterday), you know that you should use the preterite form of the verb. For besar (= kiss), first person singular Yo (= I, me), the preterite form is besé, not beso, which is why that option is not correct.