In the application, there is the question "Have you ever been refused a visa or permit, denied entry to, or ordered to leave any country or territory?" where you should have mentioned your US visa rejection.
Reply to the officer and told what happened. Hopefully, you don't get the five-year ban...