Northern Ireland boss Michael O'Neill was left "scratching his head" after his side crashed to a 2-0 defeat in Azerbaijan.