Amid a dispute of the handling of migrants in Germany, the interior minister has dismissed the head of the federal office for migration and refugees following an internal review.