Four killed in militant attack on Karachi military base