I had similar problem with my D5200. It had to be set to BULB mode, then it worked fine.

Read More...