A man has died after being attacked by a shark while fishing off Australia's southwestern coast, police say.