The murders of two soldiers in Northern Ireland will not derail the peace process, Gordon Brown has insisted.