My rooster has never tried to go after me. We raised him from a chick. He started attacking my husband with sneak attacks and every time he would pass him. It was getting bad. My husband knows how much I love my chickens and he was drawing blood on his ankles, so he worked with him. The advice to kill him is assuming you have no patience to work with him. I hope that is an incorrect assumption.
What he did was pick him up immediately and hold him, talk to him and walk with him around the yard. For at least 5 minutes. every time he would try to attack. I know it will seem hard because you are scared, but if you try to pick him up, he shouldn't be on attack mode at that point, he will be on flight mode (at least with my rooster) He doesn't like to be held. (Although I secretly think He does because He doesn't try to escape when being held) He now realizes that attacking my husband means he will be picked up so he doesn't do it anymore. Wear clothes that cover your skin and maybe gloves. My husband didn't need that because he wouldn't struggle when he held him.
I also read that when the rooster is about to attack to raise your arms up real high and wave them to make yourself look even bigger and then chase him. Some people just chase them around until they give up. The main thing you need to do is make him submit. Make him back down so he knows you are boss. When he realizes that he is not in charge and you are, he will also respect you.
There are some good articles online how to tame a rooster. You need to have patience. Chickens are smart animals. I love my little jerk to bits. SO I would try to work with a living, feeling, sentient animal first. To immediately kill an animal without trying first is a complete disregard to life.