Madame et le mort

A person who had usurped the identity of a famous writer of detective stories was killed in the train. Why and by whom?