An undertrial prisoner accused of murdering his wife allegedly died by suicide inside the district jail late Monday night.