A US air strike in Syria killed a former German rapper working for the Islamic State who used social media to recruit, defence officials confirmed.