We use by+agent to say who or what carries out the action (Othello was written by Shakespeare.)
We use with+material/instrument to say what material or instrument the agent used (This dish is made with peppers.)
We can omit the agent when it is unimportant or obvious from context. (The robber was arrested last night)