The lawyer of Australian teacher Gabrielle Maina, who was shot dead in the Kenyan capital Nairobi, says his client feared for her life.
It has been revealed that Ms Maina was granted a restraining order against her former husband before her death.
Investigators are trying to unravel why the teacher was shot dead on a quiet street in Nairobi last Thursday as she was walking home.
Her lawyer, George Kingori, said his client feared for her life.
Mr Kingori said Ms Maina had been granted a restraining order in April this year, against her estranged husband.
"She required a restraining order against the husband for constantly stalking, approaching her place of work and as well as the residence," he said.
Mr Kingori said Ms Maina was seeking to secure custody of the couple's two sons, but the relationship was breaking down.
"The husband would constantly show up at her place of work and constantly sending messages. So, she needed that to stop and therefore approached us for assistance. She was afraid."
The ABC approached Ms Maina's husband via his lawyer, but he has not responded.
Kenyan police are trying to determine who killed Ms Maina and why.
Her lawyer said there were signs the teacher, who was formerly from Armidale in northern New South Wales, may have been forced to kneel on the road before she was shot.
Staff from a nearby lodge and function centre heard the gunshots and rushed to the scene.
Gardener Kevin Mayodi was one of them. "I head the sound of a gun, two times," he said.
"After a few minutes, I come to see what's going on. I find somebody lying down, who was shot.
"I found the lady down. She was injured here on the neck. Already was dead."
Mr Mayodi and other local workers said there have been some minor robberies along the road, but nothing like the shooting of Ms Maina.
They want to pass on their condolences to Ms Maina's family in Australia.
"For me, I feel so sad because she left young children and her family."
Students from the school where Ms Maina worked in Nairobi are returning to class after term holidays.
The school is yet to announce whether it will hold a remembrance service.
Friend and former teacher Emmanuel Simiyu Munyole said Ms Maina was generous and loyal.
"Words cannot describe Gabrielle. To me, I think she is from a different planet, or different world. She was so kind hearted," he said.
He wants those responsible for her death brought to justice, calling them selfish and cowards.