Mr. Oumarou 's two years as prime minister ended last February when a military coup ousted Mr. Tandja after he sought to change the constitution to stay in office longer .