The government said it had successfully ended a six-hour siege by the militants at the Godka Jilacow prison complex.