Authorities in Capitola worked for hours Monday to safely detain a man experiencing a mental health crisis near Capitola Beach.