Sri Lankan Prime Minister Mahinda Rajapaksa resigned on Monday, hours after his supporters attacked anti-government protesters outside embattled President Gotabaya Rajapaksa's office, leaving at least 78 people injured, leading to a nationwide curfew and deployment of the military in the streets of the capital Colombo.