A Massachusetts firefighter said in a lawsuit filed Wednesday that the city of Pittsfield violated federal law when it denied him a promotion for missing too much work time in order to fulfill his military obligations as a Navy reservist.