The police said the man spray-painted the word “resist” on the doors of a Tesla repair center and then used a firearm and Molotov cocktails to damage five vehicles.