A man is being detained by police officers on the beach.