"Make something out of" or "Make something with"?
Bill can make a doghouse out of paper.
This is completely correct, and means that the product will be a paper doghouse.
Bill can make a doghouse with paper.
This sounds peculiar, but I would understand it as a dog house where paper has been used instead of something else, or maybe a doghouse that has paper parts but is mostly made of another material.
Similarly
I made the pancakes out of rice flour
implies you made rice flour pancakes, but
I made the pancakes with rice flour
means that you could have used rice flour and wheat flour together.
Your teacher writes bad quiz questions, unless there were some very careful specifications added that would disqualify your answer and require the allegedly "correct" one. Teachers who write questions which they think have obviously correct answers have poor imaginations, penalise students with good imaginations and instil bad habits in the more impressionable students.
Both answers are good English; the meaning is almost identical. You could argue that construction out of paper implies that paper is the principal component, where construction with paper does not, but I cannot see how that is relevant.
Were there any extra rules or guidelines attached to the quiz? Did it specify single-word answers? If not, not only is your answer valid but a case might be argued for many others.
Bill can make a doghouse lined with paper. That's cool
Well, lining it with fur would be insanitary.
Bill can make a doghouse into paper. That's cool.
His dad built him a miniature wood-pulping machine in the back garden.
Oh, I dislike unimaginative teachers who abuse their god-like position to make such arbitrary and indefensible judgements.
Thinking about it some more, with doesn't even directly imply that the item specified is a component; with, in this case, is equivalent to using and it is up to the reader to infer, from context, whether the item is an ingredient or a tool.
Bill made a pyramid with cardboard, scissors and tape; his teacher had told him it would be good for sharpening razor blades.
Which is another distinction between with and out of but still doesn't justify your teacher's ruling.
One implies materials, while the other implies tools. Consider the following:
Bill can make a doghouse out of wood.
vs.:
Bill can make a doghouse with a hammer.
In these cases, there's a clear difference. You wouldn't make a doghouse out of a hammer, and it's still kind of awkward to say you could make a doghouse with wood (though not as bad as the other case).