S.Korean prosecutors detain ex-defense chief over martial law imposition