A police raid that killed three militants holding hostages at a mosque has sparked angry protests in Indian-controlled Kashmir .