Are you throwing the spear from land? or are you in the water with the shark. If you are in the water with the shark you have no chance. Sharks are among the fastest fish in the sea. Often they attack by approaching from directly below their target or at least out of their sight at lightning speed, bite, then release and wait for their prey to bleed to death. Shark skin is as tough as boot leather and as toothy as a wood rasp. I've seen a show where they were dissecting a great white shark. The shark's skin was almost 8 inches thick. I'm sure we all played kung fu in the pool when we were kids, and I'm sure some of you guys still do
. Remeber how ineffective it was punching your brother under water? I don't think that one could thrust a spear while submerged with sufficient force to do much, particularily to a shark. If you enter a sharks world, well, he has the home field advantage and will win most if not every time.
If I wanted to kill a shark, using primitive technology, I'd go a couple of routes depending on the size of the fish. One would be to build a fish trap at low tides using wood or bamboo stakes. It would be a sort of corral for the shark, I'd bate it with a pig or something, then the shark would be trapped when the tide goes out. A nice long spear from a boat might work, but then again, if the shark is larger than you are, fat chance at that. A bow and arrow might work as well. I've seen articles on bow fishing where they were pulling in 100lbs stingrays and some smaller sharks. Stealing an idea from jaws, You could attach floats to the line on your arrow, hopefully they would wear the shark out enough to keep it still while you stab it with a spear.
One thing to remember though, if you ever are in the water with a shark, the best defense is to punch it in the nose, and if that doesn't work, you then poke it in the eye with your stump.