Man accused of taking child photos at beach