The beaches in Del Mar, San Diego, have been closed following a shark attack that injured a 46-year-old man.