How to say in Czech: I am sorry but I had to.

English
I am sorry but I had to.
Czech
Omlouvám se, ale musel jsem.