Question: why yashamaru tried to kill gaara?
Answer: Gaara has the belief that he could only rely upon himself and Shukaku, after Yashamaru, the only person who he thought loved him tried to kill him, on the order of his father, and that he had to kill others in order to confirm the value of his own existence.