At least 31 troops, among them four officers, were killed in a massive bomb attack on an army base near Damascus on Sunday, a monitoring group said.