CAIRO — The Islamic militant group Hamas on Monday re-elected longtime leader Khaled Mashaal, officials said, choosing a relative pragmatist who has sparred with movement hardliners in the past over his attempt to reconcile with Western-backed Palestinian rivals.

The secretive Hamas did not issue an announcement, but Mashaal's re-election was confirmed by two Hamas officials. The vote late Monday capped a year of internal elections spread over several countries and shrouded in mystery.