An investigation is under way after a woman died and a child was seriously injured in an alleged suicide at a train station in Sydney's western suburbs.