Primary school evacuated due to fire