Going into the Forbidden Forest was foolhardy, sending a spell, a dark one at that, was idiotic. The damn Hinkypunk was too hard to catch. So finally they sent a dark spell that tracked the creature and struck a fatal blow. Harry then sent a cutting curse killing the creature effectively.