Man arrested after threatening to ‘kill as many people as possible’ in schools