A title used before the name of the title holder becomes a proper noun. Therefore, we don't use the article 'the' before 'Colonel Verma'. However, a title used without the name of the title holder becomes a common noun. Therefore, we use the article 'the' before 'captain'.