A man killed after he was attacked by a shark while spearfishing with his family off the West Australian coast has been identified.