Complex sentence: B-17s were still used in the Pacific later in the war, however, mainly in the combat search and rescue role.
Split into simpler sentences: B-17s were still used in the Pacific later in the war, however. The main task that they were used for was the combat search and rescue role.