Firework thrown through open window causes flat fire