AMMAN, Jordan—In January, Mohammad Dalaeen joined his parliamentarian father in a protest against Islamic State after the militants captured a childhood acquaintance who became a Jordanian fighter pilot.

Nine months later, the 23-year-old carried out a suicide bombing for the extremist group.

Mr. Dalaeen’s transformation from a promising...