Three terrorists killed in Karachi encounter