A beachside community has gathered to pay tribute to a teenager who died after being attacked by a shark while swimming at a popular surf spot.