German Chancellor Olaf Scholz has backed deportations after an Afghan asylum seeker stabbed a police officer to death.