An Israeli strike on a residential building in Syria's capital has killed seven civilians, the Syrian defence ministry says.