in that battle by sarn athrad beren fought his last fight , and himself slew the lord of nogrod , and wrested from him the necklace of the dwarves ; but he dying laid his curse upon all the treasure .