NWFP Minister for Prisons survives attack