Bangladesh President Mohammed Shahabuddin, a longtime ally of deposed prime minister Sheikh Hasina, resigned on Friday, citing health complications, two years ahead of the end of his tenure.