Toy guns have an orange end to the barrel to distinguish it from a real gun. That end was removed. He also brandished that gun in the park to have the police arrive. He did not deserve to be shot, but his actions were partly responsible.

http://www.cleveland.com/metro/index.ssf/2015/12/indisputable_images_of_tamir_r.html