Pulp Fiction (1994).
Scene: Vincent Vega (Travolta) exits the bathroom at Butch's apartment after reading Modesty Blaise, and Butch Coolidge (Bruce Willis) shoots him with a submachine gun.
Note: In the diner scene (which bookends the film), Vincent is in the bathroom during the robbery but survives that encounter.