A Hopf type lemma for fractional equations