This morning I burnt incense while fasting – I thought it would be ok. The incense was 2 meters away. I realized that it may not be okay to burn incense so I quickly put it off as I felt the sense of smell. I did not see smoke except when I lit it. Now I am concerned whether my fast is in order or not.

Your fast is in order. Any fragrance smelling directly to it while fasting is makrooh and do not invalidate the fast.