RoboCop
Prime Suspect
S1 E2:
When a person is killed and the murder weapon is RoboCop's gun, he is arrested and placed on trial. He has an alibi which he refuses to divulge, so he's about to be deactivated.