Creating a galaxy lacking dark matter in a dark matter-dominated universe