A 15-year-old former pupil killed a 37-year-old custodian and wounded the principal and a teacher at an elementary school northeast of Warsaw, prompting nationwide security patrols and an emergency cabinet session.