Afghanistan told to ‘behave’ or be prepared for response