Nearly a year after announcing that it would admit gay boys but still prohibit openly gay leaders from its ranks, the Boy Scouts of America has dismissed a gay scoutmaster.

The fired leader, Geoffrey McGrath, 49, is an Eagle Scout and software engineer in Seattle who is married to his longtime companion. He helped form a troop last fall, he said, because he loves scouting and because the low-income and immigrant children in his area of south Seattle had few after-school activities.

The troop is sponsored by the Rainier Beach United Methodist Church, one of hundreds of “reconciling congregations” in the national Methodist Church that performs same-sex marriages and promotes equality for gays and lesbians.

Mr. McGrath and the church pastor, the Rev. Monica Corsaro, said in telephone interviews on Tuesday that they had never misled local Boy Scout officials about their plans. The pastor said Mr. McGrath had offered to help in a less formal role, in part because he had received attention last year for leading a protesting Boy Scout contingent in Seattle’s gay pride parade. But she insisted that he serve as scoutmaster.