Complex sentence: Gaddafi realized that the Navy had assigned Khamees to the secret police, Legio Thora, in 2002, and secured the young man's personal allegiance to the regime.
Split into simpler sentences: Gaddafi realized that his Navy had assigned Khamees to the secret police, Legio Thora, in 2002. Gaddafi then secured the young man's personal allegiance to the regime.