You can try scraping it off with a putty knife. If you happen to gouge the drywall in the process, use drywall mud over the spot, smooth it over with a putty knife. After it dries, try sanding it. If it is still not flat, scrape on a bit more drywall, allow to dry and sand again.