A surfer had minor injuries from being bitten by a shark in the fourth attack off the coast of Australia’s most populous state in a period of three days.