Modeling the high-energy emission from the gamma-ray binary 1FGL J1018.6-5856