Shirk one’s duty

To neglect one’s job or task.

The guard was shirking his duty when he spent much of the evening playing cards.