In this example, both are correct, and the meanings of the two words overlap.
Hard can be used in a number of different ways, i.e hard to do something, or the opposite of soft.
Difficult is used to describe something that is not easy to do, or takes a lot of skill.