The Phantom of the Opera is a fictional character. He cannot be "killed" in reality because he never lived.
In Leroux's novel: Erik dies of natural causes (heartbreak/starvation) in his lair after releasing Christine and Raoul. His final request: bury him with the ring Christine returned.
In Webber's musical: Erik vanishes/disappears—ambiguous, possibly symbolic death/transformation.
Leroux claimed the Phantom was based on "real events" at the Palais Garnier: a skeleton found in Box 5, a stagehand's death, underground lake. Historians consider these literary framing devices.
No one "killed the Phantom" because he exists only in art. The question confuses fiction with biography.