In this case, it’s not murder; it’s suicide. The method is just a more complicated machine than usual.
This is like asking “if a gun commits murder, who is guilty?” The person who pulled the trigger.
If we could establish that the robot was intelligent, the answer might be different.