A Sinn Fein member resigned from the party after allegedly sending inappropriate messages to a Northern Ireland teenager.