Here's how to find all such shapes:
The question requires the ball to start from one point, bounce off a wall, then go to another specific point (no matter which direction it was originally hit in). Now, we can assume (due to the movement in 3D space with no gravity or spin) that the ball will be moving in a straight line before the bounce, and moving in a straight line after the bounce. Two intersecting lines define a plane (they intersect at the point at which the ball bounces), so any given trajectory of the ball will happen entirely within a single plane.
Now, this requires us to find a 3D shape for which every 2D plane taken through the start and end points has the property we want; in other words, every cross section taken through the line from the start to end point is an ellipse, with its foci at the points in question. This already severely limits the possible shapes we can have.
Finally, we need the bounce off the wall to actually stick to the plane in question; if we choose coordinates so that the ball is hit "horizontally", we don't want any "vertical" component to the resulting motion. This means that for any plane through our start and end points, the tangent at the side of our 3D object is perpendicular to that plane. Or in other words, if we take the axis from the start to the end point, and take any plane at right angles to that axis (rather than along that axis, like we've previously been discussing), it cuts our 3D object in a circle (the only shape for which a tangent at a point is always perpendicular to a line from that point to the centre).
Given that we need the object to have only circular cross-sections perpendicular to the axis, it must be a solid of revolution; and given that we need it to have only elliptical cross-sections along the axis, it must be a solid of revolution of an ellipse, specifically (where the foci of the ellipse are the start and end points, and the revolution is around the line between them). Assuming a continuous surface, there are no other possibilities. (This is the same solution that was mentioned in the other answer, just explained in slightly different terms.)
We can also easily see that the surface can't be discontinuous or concave; if it were, it would be possible to hit the ball into its edge (or an internal edge/corner), and the exact position of the ball would then have a large effect on the angle at which it bounced off. It's impossible for the entirety of the large range to reach the same point with no additional bounces.
Note that I'm assuming here that the size of the ball is insignificant; without that assumption, there might be additional (fairly uninteresting) possibilities involving holes in the wall that are too small for the ball to fit through.