BEIRUT, Lebanon — State television in Syria issued a withering attack late Monday on a longtime ally, the leader of the Palestinian militant group Hamas, Khaled Meshal, declaring him an ungrateful child and a corrupt traitor, saying he was having a “romantic emotional crisis” over the Syrian uprising and accusing him of selling out “resistance for power.”