Residents of Broome in Western Australia's north are in shock after a local man was killed by a shark at Cable Beach.