The little girl had a pleasant exchange with the photographer