Man loses leg after 'trying to kill son with chainsaw'