An American psychology student who was fatally stabbed in her Netherlands apartment on Wednesday had texted a friend in the United States six days earlier, saying her roommate had threatened to kill three people.

Sarah Papenheim, 21, told her friend she was going to have to go to police. The friend, who shared the text messages with The Associated Press on Friday, isn’t sure if she ever did.

“I was concerned,” Ms. Papenheim’s friend, Adam Pryor, said about receiving that text on Dec. 6. “She said she was going to the police. It didn’t feel like she was in danger.”

Ms. Papenheim, a native of Minnesota, was stabbed Wednesday at her apartment near Erasmus University in the port city of Rotterdam, where she had been studying since 2016. Police tried unsuccessfully to revive her after arriving at her home after reports of an argument.