Police have confirmed that an attack outside a London mosque where a man died and another 10 people were injured is being treated as a terror incident.