sentences:  In 1797, Aga Mohammad Khan, angered by the betrayal of Ibrahim Khalil Khan and other khans in the Caucasus, attacked and captured Shusha.Agha Mohammad Khan was assassinated in Shusha five days after its capture.Ibrahim, who had fled to his in-laws in Dagestan, then returned to Shusha and gave Aga Mohammad Khan an honourable burial.