https://codex.wordpress.org/Plugin_API/Filter_Reference/ajax_query_attachments_args
You would need to get the current post id, then get the category the post is in and then set the parent__not_in value to the array of the post IDs in that category.
See my comment on this topic about the information that ACF send in the AJAX request