A 33-year-old man has been killed in a shark attack while he was scuba diving with his brother off the southwest coast of Western Australia.