If by 'legal', you mean a general duty - police, possibly. Military, possibly. Everyone else, no.
But if you include a contractual obligation, yes, there could be. You could quite feasibly employ someone as a bodyguard, for instance, who would be in breach of contract if he just sat in his car while you were beaten up.