Ferromagnetism-induced Kondo effect in graphene with a magnetic impurity