Literary / formal — common in historical fiction, wuxia novels, news reports about political figures. The components break down as
自行 (zìxíng, 'on one's own') +
了断 (liǎoduàn, 'to settle/end definitively'). More everyday Chinese says
自杀 (zìshā, suicide).