Dynamic RKKY interaction in graphene