Dog snaps at baby then gives kisses