When Sherlock has to testify to keep his consulting job with the NYPD, the verdict isn’t what he had hoped for. After an intense interrogation, it is revealed that Sherlock’s course of actions and ego led to Detective Bell being shot. The verdict is that the judge advises the county commissioner not to reinstate Holmes back into the NYPD. However, against Bell’s recommendation - Sherlock and Watson stay on.
After Sherlock taunts a suspect, who violated parole and now blames Sherlock, tries to shoot him. Bell steps in front of him and is shot instead. As a result, the friendship that took nearly a year to create, is now damaged being that Bell feels complete disdain towards Holmes.