Police: man endangered child