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 and prompting authorities to impose a nationwide curfew and deploy army troops in the capital.